File tree Expand file tree Collapse file tree
src/emc/usr_intf/axis/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -979,7 +979,6 @@ def manual_ok(do_poll=True):
979979This means this function returns True when the mdi tab is visible."""
980980 if do_poll : s .poll ()
981981 if s .task_state != linuxcnc .STATE_ON : return False
982- if running (): return 0
983982 return s .interp_state == linuxcnc .INTERP_IDLE or (s .task_mode == linuxcnc .MODE_MDI and s .queued_mdi_commands < vars .max_queued_mdi_commands .get ())
984983
985984# If LinuxCNC is not already in one of the modes given, switch it to the
@@ -3243,8 +3242,7 @@ def get_jog_mode():
32433242jog_cont = [False ] * linuxcnc .MAX_JOINTS
32443243jogging = [0 ] * linuxcnc .MAX_JOINTS
32453244def jog_on (a , b ):
3246- if not manual_ok (): return
3247- if not manual_tab_visible (): return
3245+ if not manual_ok () or not manual_tab_visible () or running (): return
32483246 if a < 3 or a > 5 :
32493247 if vars .metric .get (): b = b / 25.4
32503248 b = from_internal_linear_unit (b )
You can’t perform that action at this time.
0 commit comments