ExtUI Pause/Stop on all Pause/Stop (#15188)
This commit is contained in:
1 parent
1c3a1ab2c6
commit
0693767efa
2 files changed
+6
-10
No files matched your search
@@ -39,6 +39,9 @@ bool Stopwatch::stop() {
|
||||
#endif
|
||||
|
||||
if (isRunning() || isPaused()) {
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
ExtUI::onPrintTimerStopped();
|
||||
#endif
|
||||
state = STOPPED;
|
||||
stopTimestamp = millis();
|
||||
return true;
|
||||
@@ -52,6 +55,9 @@ bool Stopwatch::pause() {
|
||||
#endif
|
||||
|
||||
if (isRunning()) {
|
||||
#if ENABLED(EXTENSIBLE_UI)
|
||||
ExtUI::onPrintTimerPaused();
|
||||
#endif
|
||||
state = PAUSED;
|
||||
stopTimestamp = millis();
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user