Consolidate smart stepper driver initialization

This commit is contained in:
Scott Lahteine 2018-03-18 18:33:56 -05:00
parent 72776f647b
commit a03502080e
5 changed files with 180 additions and 119 deletions

View file

@ -87,6 +87,11 @@ void Power::check() {
void Power::power_on() {
lastPowerOn = millis();
PSU_PIN_ON();
#if HAS_TRINAMIC
delay(100); // Wait for power to settle
restore_stepper_drivers();
#endif
}
void Power::power_off() {