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

@ -76,14 +76,9 @@
OUT_WRITE(SUICIDE_PIN, HIGH);
#endif
#if ENABLED(HAVE_TMC2130)
delay(100);
tmc2130_init(); // Settings only stick when the driver has power
#endif
#if ENABLED(HAVE_TMC2208)
delay(100);
tmc2208_init();
#if DISABLED(AUTO_POWER_CONTROL)
delay(100); // Wait for power to settle
restore_stepper_drivers();
#endif
#if ENABLED(ULTIPANEL)