diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-08-10 12:54:57 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-08-10 12:55:49 +0300 |
commit | 475f43e35e428b7bf8c81c5ea3c320a4d3a8f3a6 (patch) | |
tree | 509c41c6784b4048200534b1677404f053e42e1f | |
parent | c01380b98330319edec296638835b5f94cee527e (diff) |
Restored open load warnings3.4.2rc2
-rw-r--r-- | src/GCodes/GCodes3.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/GCodes/GCodes3.cpp b/src/GCodes/GCodes3.cpp index a4d5d049..9e1895bb 100644 --- a/src/GCodes/GCodes3.cpp +++ b/src/GCodes/GCodes3.cpp @@ -1937,18 +1937,18 @@ void GCodes::ProcessEvent(GCodeBuffer& gb) noexcept #endif // We didn't execute the macro, so do the default action - if ((mt & LogLevelMask) != 0) - { - platform.MessageF((MessageType)(mt & (LogLevelMask | ErrorMessageFlag | WarningMessageFlag)), "%s\n", eventText.c_str()); // log the event - } - if (Event::GetDefaultPauseReason() == PrintPausedReason::dontPause) { + platform.MessageF(mt, "%s\n", eventText.c_str()); // record the event on the console and log it Event::FinishedProcessing(); // nothing more to do } else { // It's a serious event that causes the print to pause by default, so send an alert + if ((mt & LogLevelMask) != 0) + { + platform.MessageF((MessageType)(mt & (LogLevelMask | ErrorMessageFlag | WarningMessageFlag)), "%s\n", eventText.c_str()); // log the event + } const bool isPrinting = IsReallyPrinting(); platform.SendAlert(GenericMessage, eventText.c_str(), (isPrinting) ? "Printing paused" : "Event notification", 1, 0.0, AxesBitmap()); if (IsReallyPrinting()) |