Init CS pins before loading settings (#9566)

This commit is contained in:
teemuatlut authored and Scott Lahteine committed 2018-02-10 14:08:53 -06:00
1 parent d3fdb44ad8
commit 5990266724
3 files changed
+50

No files matched your search

+7
View File
@@ -689,6 +689,13 @@ void setup() {
SERIAL_PROTOCOLLNPGM("start");
SERIAL_ECHO_START();
#if ENABLED(HAVE_TMC2130)
tmc_init_cs_pins();
#endif
#if ENABLED(HAVE_TMC2208)
tmc2208_serial_begin();
#endif
// Check startup - does nothing if bootloader sets MCUSR to 0
byte mcu = HAL_get_reset_source();
if (mcu & 1) SERIAL_ECHOLNPGM(MSG_POWERUP);