Make HOTEND_LOOP more consistent, let compiler optimize it

This commit is contained in:
Scott Lahteine committed 2017-02-12 02:50:38 -06:00
1 parent e1702816f6
commit e44294bb4d
4 files changed
+6 -17

No files matched your search

+1 -1
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