Sfoglia il codice sorgente

Fix M0 unused var warning

Scott Lahteine 5 anni fa
parent
commit
5ec1a8bb2b
1 ha cambiato i file con 5 aggiunte e 3 eliminazioni
  1. 5
    3
      Marlin/src/gcode/lcd/M0_M1.cpp

+ 5
- 3
Marlin/src/gcode/lcd/M0_M1.cpp Vedi File

@@ -56,9 +56,11 @@ void GcodeSuite::M0_M1() {
56 56
 
57 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 64
   #endif
63 65
 
64 66
   #if HAS_LCD_MENU

Loading…
Annulla
Salva