1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-24 12:35:51 +00:00

Patch TMC current read from EEPROM

This commit is contained in:
Scott Lahteine 2018-01-07 20:46:55 -06:00
parent f8dee4e726
commit 0eee55c0dd

View File

@ -1181,7 +1181,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) {