Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hammacher <bmasterc@gmail.com>2022-06-09 19:19:11 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-06-22 11:03:20 +0300
commitbd2df24482a64ee7053cbe61d0db5458f8ec2010 (patch)
tree9306109908b9d1b4f049f8c053ac6ead969c040f
parentfa652467b4fb227d704a771b0de12e6d3e1dd48e (diff)
Don't report times left if not printing
-rw-r--r--src/PrintMonitor/PrintMonitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PrintMonitor/PrintMonitor.cpp b/src/PrintMonitor/PrintMonitor.cpp
index 9a45b65e..fc46edee 100644
--- a/src/PrintMonitor/PrintMonitor.cpp
+++ b/src/PrintMonitor/PrintMonitor.cpp
@@ -393,7 +393,7 @@ float PrintMonitor::EstimateTimeLeft(PrintEstimationMethod method) const noexcep
ReadLocker locker(printMonitorLock);
// We can't provide an estimation if we don't have any information about the file
- if (!printingFileParsed)
+ if (!printingFileParsed || !isPrinting)
{
return 0.0;
}