Fixed timeout issues that occurred sometimes when connecting to the printer
This commit is contained in:
1 parent
574961ceac
commit
49f7568de2
1 file changed
+1
-1
@@ -388,7 +388,7 @@ class MachineCom(object):
|
||||
self._sendCommand("M105")
|
||||
elif 'ok' in line:
|
||||
self._changeState(self.STATE_OPERATIONAL)
|
||||
if time.time() > timeout:
|
||||
elif time.time() > timeout:
|
||||
self.close()
|
||||
elif self._state == self.STATE_OPERATIONAL:
|
||||
#Request the temperature on comm timeout (every 2 seconds) when we are not printing.
|
||||
|
||||
Reference in new issue
Block a user