Consolidate smart stepper driver initialization

This commit is contained in:
Scott Lahteine
2018-03-18 19:01:42 -05:00
parent 53362b81cc
commit 48d7036874
5 changed files with 173 additions and 146 deletions

View File

@ -88,6 +88,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() {