From: Joseph Coffland Date: Mon, 19 Sep 2016 04:01:21 +0000 (-0700) Subject: Fix to exit jog mode X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=722dadfed3afd397b644c7eee6019cd9420ce7b5;p=bbctrl-firmware Fix to exit jog mode --- diff --git a/src/plan/jog.c b/src/plan/jog.c index ea07518..f700c46 100644 --- a/src/plan/jog.c +++ b/src/plan/jog.c @@ -121,7 +121,7 @@ static stat_t _exec_jog(mp_buffer_t *bf) { } else Vi = Vt; - if (Vi < JOG_MIN_VELOCITY && Vt < JOG_MIN_VELOCITY) done = false; + if (JOG_MIN_VELOCITY < Vi || JOG_MIN_VELOCITY < Vt) done = false; velocity_sqr += square(Vi); jr.velocity[axis] = Vi * jr.sign[axis];