From 99516572b18bab723997d60467284241252c52a5 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 7 Jan 2018 20:48:46 -0600 Subject: [PATCH] Fix TMC current read from EEPROM --- Marlin/src/module/configuration_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/module/configuration_store.cpp b/Marlin/src/module/configuration_store.cpp index f2a2c366be..88e44555f2 100644 --- a/Marlin/src/module/configuration_store.cpp +++ b/Marlin/src/module/configuration_store.cpp @@ -1151,7 +1151,7 @@ void MarlinSettings::postprocess() { // TMC2130 Stepper Current // #if HAS_TRINAMIC - #define SET_CURR(N,Q) stepper##Q.setCurrent(val[N], R_SENSE, HOLD_MULTIPLIER) + #define SET_CURR(N,Q) stepper##Q.setCurrent(val[N] ? val[N] : Q##_CURRENT, R_SENSE, HOLD_MULTIPLIER) uint16_t val[11]; EEPROM_READ(val); if (!validating) {