Use safe_delay for PSU_POWERUP_DELAY (#18680)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
Markus TowaraandScott Lahteine authored and GitHub committed 2020-07-17 12:33:45 -05:00
1 parent e34684a9c7
commit f4aba99624
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -105,9 +105,9 @@ void Power::power_on() {
lastPowerOn = millis();
if (!powersupply_on) {
PSU_PIN_ON();
delay(PSU_POWERUP_DELAY);
safe_delay(PSU_POWERUP_DELAY);
restore_stepper_drivers();
TERN_(HAS_TRINAMIC_CONFIG, delay(PSU_POWERUP_DELAY));
TERN_(HAS_TRINAMIC_CONFIG, safe_delay(PSU_POWERUP_DELAY));
}
}