Make HOTEND_LOOP more consistent, let compiler optimize it
This commit is contained in:
parent
e1702816f6
commit
e44294bb4d
4 changed files with 6 additions and 17 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue