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.
This commit is contained in:
Yuri D'Elia 2022-07-11 13:07:00 +02:00
parent 19df196e1f
commit e77a5345a2

View file

@ -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);
}