That was easy enough to continue temp monitoring whilst paused

master
Richard Mitchell 2013-03-01 22:19:58 +00:00
parent b2408c92a5
commit 943d734993
1 changed files with 2 additions and 2 deletions

View File

@ -393,8 +393,8 @@ class MachineCom(object):
self._changeState(self.STATE_OPERATIONAL)
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.
elif self._state == self.STATE_OPERATIONAL or self._state == self.STATE_PAUSED:
#Request the temperature on comm timeout (every 5 seconds) when we are not printing.
if line == '':
self._sendCommand("M105")
tempRequestTimeout = time.time() + 5