Init CS pins before loading settings (#9566)

This commit is contained in:
teemuatlut
2018-02-10 22:08:53 +02:00
committed by Scott Lahteine
parent d3fdb44ad8
commit 5990266724
3 changed files with 50 additions and 0 deletions

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);