mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 12:04:19 +00:00
Use safe_delay for PSU_POWERUP_DELAY (#18680)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
parent
e34684a9c7
commit
f4aba99624
@ -105,9 +105,9 @@ void Power::power_on() {
|
|||||||
lastPowerOn = millis();
|
lastPowerOn = millis();
|
||||||
if (!powersupply_on) {
|
if (!powersupply_on) {
|
||||||
PSU_PIN_ON();
|
PSU_PIN_ON();
|
||||||
delay(PSU_POWERUP_DELAY);
|
safe_delay(PSU_POWERUP_DELAY);
|
||||||
restore_stepper_drivers();
|
restore_stepper_drivers();
|
||||||
TERN_(HAS_TRINAMIC_CONFIG, delay(PSU_POWERUP_DELAY));
|
TERN_(HAS_TRINAMIC_CONFIG, safe_delay(PSU_POWERUP_DELAY));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,9 +72,9 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if DISABLED(AUTO_POWER_CONTROL)
|
#if DISABLED(AUTO_POWER_CONTROL)
|
||||||
delay(PSU_POWERUP_DELAY);
|
safe_delay(PSU_POWERUP_DELAY);
|
||||||
restore_stepper_drivers();
|
restore_stepper_drivers();
|
||||||
TERN_(HAS_TRINAMIC_CONFIG, delay(PSU_POWERUP_DELAY));
|
TERN_(HAS_TRINAMIC_CONFIG, safe_delay(PSU_POWERUP_DELAY));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
TERN_(HAS_LCD_MENU, ui.reset_status());
|
TERN_(HAS_LCD_MENU, ui.reset_status());
|
||||||
|
Loading…
Reference in New Issue
Block a user