Make HOTEND_LOOP more consistent, let compiler optimize it

This commit is contained in:
Scott Lahteine
2017-02-12 02:50:05 -06:00
parent e1702816f6
commit e44294bb4d
4 changed files with 6 additions and 17 deletions

View File

@ -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