Selaa lähdekoodia

Fix M0 unused var warning

Scott Lahteine 5 vuotta sitten
vanhempi
commit
5ec1a8bb2b
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5
    3
      Marlin/src/gcode/lcd/M0_M1.cpp

+ 5
- 3
Marlin/src/gcode/lcd/M0_M1.cpp Näytä tiedosto

56
 
56
 
57
   planner.synchronize();
57
   planner.synchronize();
58
 
58
 
59
-  const bool seenQ = parser.seen('Q');
60
-  #if HAS_LEDS_OFF_FLAG
61
-    if (seenQ) printerEventLEDs.onPrintCompleted();      // Change LED color for Print Completed
59
+  #if HAS_LCD_MENU || HAS_LEDS_OFF_FLAG
60
+    const bool seenQ = parser.seen('Q');
61
+    #if HAS_LEDS_OFF_FLAG
62
+      if (seenQ) printerEventLEDs.onPrintCompleted();  // Change LED color for Print Completed
63
+    #endif
62
   #endif
64
   #endif
63
 
65
 
64
   #if HAS_LCD_MENU
66
   #if HAS_LCD_MENU

Loading…
Peruuta
Tallenna