Fix TMC current read from EEPROM
This commit is contained in:
parent
f26805e862
commit
99516572b1
1 changed files with 1 additions and 1 deletions
|
@ -1151,7 +1151,7 @@ void MarlinSettings::postprocess() {
|
||||||
// TMC2130 Stepper Current
|
// TMC2130 Stepper Current
|
||||||
//
|
//
|
||||||
#if HAS_TRINAMIC
|
#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];
|
uint16_t val[11];
|
||||||
EEPROM_READ(val);
|
EEPROM_READ(val);
|
||||||
if (!validating) {
|
if (!validating) {
|
||||||
|
|
Reference in a new issue