Fixed timeout issues that occurred sometimes when connecting to the printer

master
Gina Haeussge 2013-01-13 14:45:39 +00:00 committed by Gina Häußge
parent 574961ceac
commit 49f7568de2
1 changed files with 1 additions and 1 deletions

View File

@ -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.