Skip to content

Commit

Permalink
Restored open load warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Aug 10, 2022
1 parent c01380b commit 475f43e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/GCodes/GCodes3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 475f43e

Please sign in to comment.