Only try to record recovery data if a print was ongoing
This commit is contained in:
parent
1ea0cf9213
commit
beb5850361
1 changed files with 2 additions and 1 deletions
|
|
@ -313,7 +313,8 @@ class MachineCom(object):
|
|||
self._callback.on_comm_sd_files([])
|
||||
|
||||
if self._currentFile is not None:
|
||||
self._recordFilePosition()
|
||||
if self.isBusy():
|
||||
self._recordFilePosition()
|
||||
self._currentFile.close()
|
||||
|
||||
oldState = self.getStateString()
|
||||
|
|
|
|||
Loading…
Reference in a new issue