From 15f6e0f87da465580f342c3124741b1e04e72150 Mon Sep 17 00:00:00 2001 From: Teja Date: Wed, 1 Apr 2015 16:37:00 +0200 Subject: [PATCH] bugfix. Don't fail on GRBL style dwelling commands a la G4 P0.5 --- src/octoprint/util/comm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/octoprint/util/comm.py b/src/octoprint/util/comm.py index abbf4159..6703be3a 100644 --- a/src/octoprint/util/comm.py +++ b/src/octoprint/util/comm.py @@ -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