From 475f43e35e428b7bf8c81c5ea3c320a4d3a8f3a6 Mon Sep 17 00:00:00 2001 From: David Crocker Date: Wed, 10 Aug 2022 10:54:57 +0100 Subject: Restored open load warnings --- src/GCodes/GCodes3.cpp | 10 +++++----- 1 file 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()) -- cgit v1.2.3