Skip to content

Commit 7852337

Browse files
committed
axis.py: restore mdi queuing provision #2460
Needs user testing 301e3a1 fix for forum bug broke mdi queueing as noted by #2460 Notes: 1) function manual_ok() must include tests for queued mdi commands in order to allow their queuing. (See also code note re "deceptive function name") 2) The manual_tab can be raised (by click or F3) when function running() is true. 3) New: jog initiation (function jog_on) not allowed if running().
1 parent 582a144 commit 7852337

File tree

1 file changed

+1
-3
lines changed
  • src/emc/usr_intf/axis/scripts

1 file changed

+1
-3
lines changed

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
@@ -3231,8 +3230,7 @@ def get_jog_mode():
32313230
jog_cont = [False] * linuxcnc.MAX_JOINTS
32323231
jogging = [0] * linuxcnc.MAX_JOINTS
32333232
def jog_on(a, b):
3234-
if not manual_ok(): return
3235-
if not manual_tab_visible(): return
3233+
if not manual_ok() or not manual_tab_visible() or running(): return
32363234
if a < 3 or a > 5:
32373235
if vars.metric.get(): b = b / 25.4
32383236
b = from_internal_linear_unit(b)

0 commit comments

Comments
 (0)