Browse Source

Fix commas in EEPROM code

Scott Lahteine 5 years ago
parent
commit
9114a14eca
1 changed files with 16 additions and 4 deletions
  1. 16
    4
      Marlin/src/module/configuration_store.cpp

+ 16
- 4
Marlin/src/module/configuration_store.cpp View File

@@ -3126,12 +3126,18 @@ void MarlinSettings::reset() {
3126 3126
         say_M906(forReplay);
3127 3127
         SERIAL_ECHOLNPAIR_P(
3128 3128
           #if AXIS_IS_TMC(X)
3129
-            SP_X_STR, stepperX.getMilliamps(),
3129
+            SP_X_STR, stepperX.getMilliamps()
3130 3130
           #endif
3131 3131
           #if AXIS_IS_TMC(Y)
3132
-            SP_Y_STR, stepperY.getMilliamps(),
3132
+            #if AXIS_IS_TMC(X)
3133
+              ,
3134
+            #endif
3135
+            SP_Y_STR, stepperY.getMilliamps()
3133 3136
           #endif
3134 3137
           #if AXIS_IS_TMC(Z)
3138
+            #if AXIS_IS_TMC(X) || AXIS_IS_TMC(Y)
3139
+              ,
3140
+            #endif
3135 3141
             SP_Z_STR, stepperZ.getMilliamps()
3136 3142
           #endif
3137 3143
         );
@@ -3142,12 +3148,18 @@ void MarlinSettings::reset() {
3142 3148
         SERIAL_ECHOPGM(" I1");
3143 3149
         SERIAL_ECHOLNPAIR_P(
3144 3150
           #if AXIS_IS_TMC(X2)
3145
-            SP_X_STR, stepperX2.getMilliamps(),
3151
+            SP_X_STR, stepperX2.getMilliamps()
3146 3152
           #endif
3147 3153
           #if AXIS_IS_TMC(Y2)
3148
-            SP_Y_STR, stepperY2.getMilliamps(),
3154
+            #if AXIS_IS_TMC(X2)
3155
+              ,
3156
+            #endif
3157
+            SP_Y_STR, stepperY2.getMilliamps()
3149 3158
           #endif
3150 3159
           #if AXIS_IS_TMC(Z2)
3160
+            #if AXIS_IS_TMC(X2) || AXIS_IS_TMC(Y2)
3161
+              ,
3162
+            #endif
3151 3163
             SP_Z_STR, stepperZ2.getMilliamps()
3152 3164
           #endif
3153 3165
         );

Loading…
Cancel
Save