Browse Source

Fix TMC current read from EEPROM

Scott Lahteine 7 years ago
parent
commit
99516572b1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/module/configuration_store.cpp

+ 1
- 1
Marlin/src/module/configuration_store.cpp View File

@@ -1151,7 +1151,7 @@ void MarlinSettings::postprocess() {
1151 1151
       // TMC2130 Stepper Current
1152 1152
       //
1153 1153
       #if HAS_TRINAMIC
1154
-        #define SET_CURR(N,Q) stepper##Q.setCurrent(val[N], R_SENSE, HOLD_MULTIPLIER)
1154
+        #define SET_CURR(N,Q) stepper##Q.setCurrent(val[N] ? val[N] : Q##_CURRENT, R_SENSE, HOLD_MULTIPLIER)
1155 1155
         uint16_t val[11];
1156 1156
         EEPROM_READ(val);
1157 1157
         if (!validating) {

Loading…
Cancel
Save