Skip to content

Commit aa39548

Browse files
authored
Merge pull request #3642 from LinuxCNC/2.9_#2460
axis.py: restore mdi queuing provision #2460
2 parents 11ebc3f + 7852337 commit aa39548

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • src/emc/usr_intf/axis/scripts

src/emc/usr_intf/axis/scripts/axis.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,6 @@ def manual_ok(do_poll=True):
979979
This 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():
32433242
jog_cont = [False] * linuxcnc.MAX_JOINTS
32443243
jogging = [0] * linuxcnc.MAX_JOINTS
32453244
def 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)

0 commit comments

Comments
 (0)