Merge branch 'fix/noProgressReportOn0' into devel
Conflicts: src/octoprint/__init__.py
This commit is contained in:
commit
833bf07ded
1 file changed
+1
-1
@@ -640,7 +640,7 @@ class Printer(PrinterInterface, comm.MachineComPrintCallback):
|
||||
|
||||
printTimeLeft = totalPrintTime - cleanedPrintTime if (totalPrintTime is not None and cleanedPrintTime is not None) else None
|
||||
|
||||
if progress:
|
||||
if progress is not None:
|
||||
progress_int = int(progress * 100)
|
||||
if self._lastProgressReport != progress_int:
|
||||
self._lastProgressReport = progress_int
|
||||
|
||||
Reference in new issue
Block a user