Explorar el Código

🩹 Fix redundant var declaration (#23913)

Ludy hace 3 años
padre
commit
bf7176fba9
No account linked to committer's email address

+ 1
- 1
Marlin/src/core/drivers.h Ver fichero

@@ -200,4 +200,4 @@
200 200
   #define HAS_L64XX_NOT_L6474 1
201 201
 #endif
202 202
 
203
-#define AXIS_IS_L64XX(A) (AXIS_DRIVER_TYPE_##A(L6470) || AXIS_DRIVER_TYPE_##A(L6474) ||  AXIS_DRIVER_TYPE_##A(L6480) || AXIS_DRIVER_TYPE_##A(POWERSTEP01))
203
+#define AXIS_IS_L64XX(A) (AXIS_DRIVER_TYPE_##A(L6470) || AXIS_DRIVER_TYPE_##A(L6474) || AXIS_DRIVER_TYPE_##A(L6480) || AXIS_DRIVER_TYPE_##A(POWERSTEP01))

+ 1
- 1
Marlin/src/gcode/feature/trinamic/M906.cpp Ver fichero

@@ -59,7 +59,7 @@ void GcodeSuite::M906() {
59 59
 
60 60
   #if AXIS_IS_TMC(X2) || AXIS_IS_TMC(Y2) || AXIS_IS_TMC(Z2) || AXIS_IS_TMC(Z3) || AXIS_IS_TMC(Z4)
61 61
     const int8_t index = parser.byteval('I', -1);
62
-  #else
62
+  #elif AXIS_IS_TMC(X) || AXIS_IS_TMC(Y) || AXIS_IS_TMC(Z)
63 63
     constexpr int8_t index = -1;
64 64
   #endif
65 65
 

+ 1
- 1
Marlin/src/gcode/feature/trinamic/M911-M914.cpp Ver fichero

@@ -258,7 +258,7 @@
258 258
     bool report = true;
259 259
     #if AXIS_IS_TMC(X2) || AXIS_IS_TMC(Y2) || AXIS_IS_TMC(Z2) || AXIS_IS_TMC(Z3) || AXIS_IS_TMC(Z4)
260 260
       const int8_t index = parser.byteval('I', -1);
261
-    #else
261
+    #elif AXIS_IS_TMC(X) || AXIS_IS_TMC(Y) || AXIS_IS_TMC(Z)
262 262
       constexpr int8_t index = -1;
263 263
     #endif
264 264
     LOOP_LOGICAL_AXES(i) if (int32_t value = parser.longval(axis_codes[i])) {

+ 1
- 1
Marlin/src/gcode/feature/trinamic/M919.cpp Ver fichero

@@ -93,7 +93,7 @@ void GcodeSuite::M919() {
93 93
 
94 94
   #if AXIS_IS_TMC(X2) || AXIS_IS_TMC(Y2) || AXIS_IS_TMC(Z2) || AXIS_IS_TMC(Z3) || AXIS_IS_TMC(Z4)
95 95
     const int8_t index = parser.byteval('I');
96
-  #else
96
+  #elif AXIS_IS_TMC(X) || AXIS_IS_TMC(Y) || AXIS_IS_TMC(Z)
97 97
     constexpr int8_t index = -1;
98 98
   #endif
99 99
 

+ 2
- 2
Marlin/src/lcd/language/language_de.h Ver fichero

@@ -388,7 +388,7 @@ namespace Language_de {
388 388
   LSTR MSG_ADVANCE_K                      = _UxGT("Vorschubfaktor");
389 389
   LSTR MSG_ADVANCE_K_E                    = _UxGT("Vorschubfaktor *");
390 390
   LSTR MSG_CONTRAST                       = _UxGT("LCD-Kontrast");
391
-  LSTR MSG_BRIGHTNESS                     = _UxGT("LCD Helligkeit");
391
+  LSTR MSG_BRIGHTNESS                     = _UxGT("LCD-Helligkeit");
392 392
   LSTR MSG_LCD_BKL_TIMEOUT                = _UxGT("LCD-Ruhezustand (s)");
393 393
   LSTR MSG_BRIGHTNESS_OFF                 = _UxGT("LCD ausschalten");
394 394
   LSTR MSG_STORE_EEPROM                   = _UxGT("Konfig. speichern");
@@ -401,7 +401,7 @@ namespace Language_de {
401 401
   LSTR MSG_SETTINGS_STORED                = _UxGT("Einstell. gespei.");
402 402
   LSTR MSG_MEDIA_UPDATE                   = _UxGT("FW Update vom Medium");
403 403
   LSTR MSG_RESET_PRINTER                  = _UxGT("Drucker neustarten");
404
-  LSTR MSG_REFRESH                        = LCD_STR_REFRESH  _UxGT("Aktualisieren");
404
+  LSTR MSG_REFRESH                        = LCD_STR_REFRESH _UxGT("Aktualisieren");
405 405
   LSTR MSG_INFO_SCREEN                    = _UxGT("Info");
406 406
   LSTR MSG_PREPARE                        = _UxGT("Vorbereitung");
407 407
   LSTR MSG_TUNE                           = _UxGT("Justierung");

Loading…
Cancelar
Guardar