Browse Source

Do not show "THERMAL ANOMALY" with "M310 B0"

This allows us to use "M310 B0 W0.01" as a way to report the current
error continuosly on the serial without 1) more code and 2) without
preventing regular usage.
Yuri D'Elia 2 years ago
parent
commit
e77a5345a2
1 changed files with 4 additions and 3 deletions
  1. 4 3
      Firmware/temperature.cpp

+ 4 - 3
Firmware/temperature.cpp

@@ -2435,9 +2435,10 @@ void handle_warning()
     static bool first = true;
     if(warning_state.assert) {
         if (first) {
-            lcd_setalertstatuspgm(MSG_THERMAL_ANOMALY, LCD_STATUS_INFO);
-            if(warn_beep) WRITE(BEEPER, HIGH);
-            first = false;
+            if(warn_beep) {
+                lcd_setalertstatuspgm(MSG_THERMAL_ANOMALY, LCD_STATUS_INFO);
+                WRITE(BEEPER, HIGH);
+            }
         } else {
             if(warn_beep) TOGGLE(BEEPER);
         }