_heatupWaitStartTime should be reset to None instead of 0
This commit is contained in:
parent
9ec49d6273
commit
4383a89091
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue