🩹 Fix M80, 1s delay (#23455)
This commit is contained in:
@@ -153,6 +153,7 @@ void Power::power_off() {
|
||||
}
|
||||
|
||||
void Power::checkAutoPowerOff() {
|
||||
if (TERN1(POWER_OFF_TIMER, !power_off_time) && TERN1(POWER_OFF_WAIT_FOR_COOLDOWN, !power_off_on_cooldown)) return;
|
||||
if (TERN0(POWER_OFF_WAIT_FOR_COOLDOWN, power_off_on_cooldown && is_cooling_needed())) return;
|
||||
if (TERN0(POWER_OFF_TIMER, power_off_time && PENDING(millis(), power_off_time))) return;
|
||||
power_off();
|
||||
|
||||
Reference in New Issue
Block a user