Add temperature-based auto power options (#14397)

This commit is contained in:
Tim Moore
2019-06-27 14:28:07 -07:00
committed by Scott Lahteine
parent 00cc1079af
commit 8ce84fa44f
109 changed files with 224 additions and 2 deletions

View File

@ -94,6 +94,14 @@ bool Power::is_power_needed() {
if (thermalManager.degTargetBed() > 0) return true;
#endif
#if HOTENDS && AUTO_POWER_E_TEMP
HOTEND_LOOP() if (thermalManager.degHotend(e) >= AUTO_POWER_E_TEMP) return true;
#endif
#if HAS_HEATED_CHAMBER && AUTO_POWER_CHAMBER_TEMP
if (thermalManager.degChamber() >= AUTO_POWER_CHAMBER_TEMP) return true;
#endif
return false;
}