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:
parent
19df196e1f
commit
e77a5345a2
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue