bugfix. Don't fail on GRBL style dwelling commands a la G4 P0.5

This commit is contained in:
Teja 2015-04-01 16:37:00 +02:00
parent a25870dd79
commit 15f6e0f87d

View file

@ -1394,10 +1394,10 @@ class MachineCom(object):
_timeout = 0
if p_idx != -1:
# dwell time is specified in milliseconds
_timeout = int(cmd[p_idx+1:]) / 1000.0
_timeout = float(cmd[p_idx+1:]) / 1000.0
elif s_idx != -1:
# dwell time is specified in seconds
_timeout = int(cmd[s_idx+1:])
_timeout = float(cmd[s_idx+1:])
self._timeout = getNewTimeout("communication") + _timeout
return cmd