Merge pull request #807 from mrbeam/vanilla_devel
made dwelling (G4 P...) commands more tolerant, because GRBL needs floats as P value.
This commit is contained in:
commit
46b48cb7c4
1 file changed
+2
-2
@@ -1548,10 +1548,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 = get_new_timeout("communication") + _timeout
|
||||
self._blocking_command = True
|
||||
return cmd
|
||||
|
||||
Reference in new issue
Block a user