Skip to content

Commit 58624aa

Browse files
committed
Multispindle: Fix the F9 / F10 spindle control shortcut in Axis.
Signed-off-by: andy pugh <andy@bodgesoc.org>
1 parent 0cab365 commit 58624aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/emc/usr_intf/axis/scripts

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2755,15 +2755,15 @@ def flood_toggle(*args):
27552755
def spindle_forward_toggle(*args):
27562756
if not manual_ok(): return
27572757
s.poll()
2758-
if s.spindle_direction == 0:
2758+
if s.spindle[0]['direction'] == 0:
27592759
c.spindle(linuxcnc.SPINDLE_FORWARD,default_spindle_speed)
27602760
else:
27612761
c.spindle(linuxcnc.SPINDLE_OFF)
27622762

27632763
def spindle_backward_toggle(*args):
27642764
if not manual_ok(): return "break"
27652765
s.poll()
2766-
if s.spindle_direction == 0:
2766+
if s.spindle[0]['direction'] == 0:
27672767
c.spindle(linuxcnc.SPINDLE_REVERSE,default_spindle_speed)
27682768
else:
27692769
c.spindle(linuxcnc.SPINDLE_OFF)

0 commit comments

Comments
 (0)