Procházet zdrojové kódy

Remove error causing break command

Use index macro instead of e
Robert Kirk před 8 roky
rodič
revize
aab5118c6a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp Zobrazit soubor

1403
     // Cooldown
1403
     // Cooldown
1404
     //
1404
     //
1405
     bool has_heat = false;
1405
     bool has_heat = false;
1406
-    HOTEND_LOOP() if (thermalManager.target_temperature[e]) { has_heat = true; break; }
1406
+    HOTEND_LOOP() if (thermalManager.target_temperature[HOTEND_INDEX]) { has_heat = true; }
1407
     #if HAS_TEMP_BED
1407
     #if HAS_TEMP_BED
1408
       if (thermalManager.target_temperature_bed) has_heat = true;
1408
       if (thermalManager.target_temperature_bed) has_heat = true;
1409
     #endif
1409
     #endif

Loading…
Zrušit
Uložit