Make HOTEND_LOOP more consistent, let compiler optimize it
This commit is contained in:
1 parent
e1702816f6
commit
e44294bb4d
4 files changed
+6
-17
No files matched your search
+1
-1
@@ -1403,7 +1403,7 @@ KeepDrawing:
|
||||
// Cooldown
|
||||
//
|
||||
bool has_heat = false;
|
||||
HOTEND_LOOP() if (thermalManager.target_temperature[HOTEND_INDEX]) { has_heat = true; }
|
||||
HOTEND_LOOP() if (thermalManager.target_temperature[HOTEND_INDEX]) { has_heat = true; break; }
|
||||
#if HAS_TEMP_BED
|
||||
if (thermalManager.target_temperature_bed) has_heat = true;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user