_heatupWaitStartTime should be reset to None instead of 0

This commit is contained in:
Gina Häußge 2015-03-04 10:29:29 +01:00
parent 9ec49d6273
commit 4383a89091

View file

@ -446,7 +446,7 @@ class MachineCom(object):
if self._currentFile is None:
raise ValueError("No file selected for printing")
self._heatupWaitStartTime = 0
self._heatupWaitStartTime = None
self._heatupWaitTimeLost = 0.0
self._pauseWaitStartTime = 0
self._pauseWaitTimeLost = 0.0
@ -1025,7 +1025,7 @@ class MachineCom(object):
if self._resendDelta is not None:
self._resendNextCommand()
else:
if self._heatupWaitStartTime is None:
if not self._heatupWaitStartTime:
if time.time() > tempRequestTimeout:
self.sendCommand("M105")
tempRequestTimeout = get_new_timeout("temperature")