From beab9733f8cb0afc72c657ba39557bcdf71b69af Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 19 Sep 2018 17:06:51 -0500 Subject: [PATCH] Remove extra clauses in config-store --- Marlin/src/module/configuration_store.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Marlin/src/module/configuration_store.cpp b/Marlin/src/module/configuration_store.cpp index 101175b229..d07479ebf3 100644 --- a/Marlin/src/module/configuration_store.cpp +++ b/Marlin/src/module/configuration_store.cpp @@ -773,7 +773,7 @@ void MarlinSettings::postprocess() { 0, #endif #if MAX_EXTRUDERS > 3 - #if AXIS_IS_TMC(E3) + #if AXIS_IS_TMC(E3) stepperE3.getCurrent(), #else 0, @@ -2714,23 +2714,23 @@ void MarlinSettings::reset(PORTARG_SOLO) { say_M906(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T0 E", stepperE0.getCurrent()); #endif - #if E_STEPPERS > 1 && AXIS_IS_TMC(E1) + #if AXIS_IS_TMC(E1) say_M906(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T1 E", stepperE1.getCurrent()); #endif - #if E_STEPPERS > 2 && AXIS_IS_TMC(E2) + #if AXIS_IS_TMC(E2) say_M906(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T2 E", stepperE2.getCurrent()); #endif - #if E_STEPPERS > 3 && AXIS_IS_TMC(E3) + #if AXIS_IS_TMC(E3) say_M906(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T3 E", stepperE3.getCurrent()); #endif - #if E_STEPPERS > 4 && AXIS_IS_TMC(E4) + #if AXIS_IS_TMC(E4) say_M906(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T4 E", stepperE4.getCurrent()); #endif - #if E_STEPPERS > 5 && AXIS_IS_TMC(E5) + #if AXIS_IS_TMC(E5) say_M906(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T5 E", stepperE5.getCurrent()); #endif @@ -2785,23 +2785,23 @@ void MarlinSettings::reset(PORTARG_SOLO) { say_M913(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T0 E", TMC_GET_PWMTHRS(E, E0)); #endif - #if E_STEPPERS > 1 && AXIS_IS_TMC(E1) + #if AXIS_IS_TMC(E1) say_M913(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T1 E", TMC_GET_PWMTHRS(E, E1)); #endif - #if E_STEPPERS > 2 && AXIS_IS_TMC(E2) + #if AXIS_IS_TMC(E2) say_M913(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T2 E", TMC_GET_PWMTHRS(E, E2)); #endif - #if E_STEPPERS > 3 && AXIS_IS_TMC(E3) + #if AXIS_IS_TMC(E3) say_M913(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T3 E", TMC_GET_PWMTHRS(E, E3)); #endif - #if E_STEPPERS > 4 && AXIS_IS_TMC(E4) + #if AXIS_IS_TMC(E4) say_M913(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T4 E", TMC_GET_PWMTHRS(E, E4)); #endif - #if E_STEPPERS > 5 && AXIS_IS_TMC(E5) + #if AXIS_IS_TMC(E5) say_M913(PORTVAR_SOLO); SERIAL_ECHOLNPAIR_P(port, " T5 E", TMC_GET_PWMTHRS(E, E5)); #endif