Longer default power-up delay

See MarlinFirmware/Configurations#78
This commit is contained in:
Scott Lahteine 2020-04-19 23:37:05 -05:00
parent 78fe411c7d
commit 5d0deba938
3 changed files with 8 additions and 11 deletions

View file

@ -326,7 +326,7 @@
#define PSU_ACTIVE_HIGH false // Set 'false' for ATX, 'true' for X-Box
//#define PSU_DEFAULT_OFF // Keep power off until enabled directly with M80
//#define PSU_POWERUP_DELAY 100 // (ms) Delay for the PSU to warm up to full power
//#define PSU_POWERUP_DELAY 250 // (ms) Delay for the PSU to warm up to full power
//#define AUTO_POWER_CONTROL // Enable automatic control of the PS_ON pin
#if ENABLED(AUTO_POWER_CONTROL)

View file

@ -107,11 +107,9 @@ void Power::power_on() {
lastPowerOn = millis();
if (!powersupply_on) {
PSU_PIN_ON();
#if HAS_TRINAMIC_CONFIG
delay(PSU_POWERUP_DELAY); // Wait for power to settle
delay(PSU_POWERUP_DELAY);
restore_stepper_drivers();
#endif
TERN_(HAS_TRINAMIC_CONFIG, delay(PSU_POWERUP_DELAY));
}
}

View file

@ -72,16 +72,15 @@
#endif
#if DISABLED(AUTO_POWER_CONTROL)
delay(PSU_POWERUP_DELAY); // Wait for power to settle
delay(PSU_POWERUP_DELAY);
restore_stepper_drivers();
TERN_(HAS_TRINAMIC_CONFIG, delay(PSU_POWERUP_DELAY));
#endif
#if HAS_LCD_MENU
ui.reset_status();
#endif
TERN_(HAS_LCD_MENU, ui.reset_status());
}
#endif // ENABLED(PSU_CONTROL)
#endif // PSU_CONTROL
/**
* M81: Turn off Power, including Power Supply, if there is one.