Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lib/python/common/hal_glib.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,9 @@ def update(self):
state_new = self.old['state']
if state_new != state_old:

# set machine estop/clear
if state_old == linuxcnc.STATE_ESTOP and state_new == linuxcnc.STATE_ESTOP_RESET:
# set machine estop/clear; a reset and machine on between two
# polls go from ESTOP straight to ON and still clear the estop
if state_old == linuxcnc.STATE_ESTOP:
self.emit('state-estop-reset')
self.emit('interp-idle')
elif state_new == linuxcnc.STATE_ESTOP:
Expand Down