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

@ -684,11 +684,11 @@ int16_t Temperature::getHeaterPower(const int8_t heater) {
uint8_t fanState = 0;
HOTEND_LOOP()
if (temp_hotend[e].current > EXTRUDER_AUTO_FAN_TEMPERATURE)
if (temp_hotend[e].current >= EXTRUDER_AUTO_FAN_TEMPERATURE)
SBI(fanState, pgm_read_byte(&fanBit[e]));
#if HAS_AUTO_CHAMBER_FAN
if (temp_chamber.current > CHAMBER_AUTO_FAN_TEMPERATURE)
if (temp_chamber.current >= CHAMBER_AUTO_FAN_TEMPERATURE)
SBI(fanState, pgm_read_byte(&fanBit[CHAMBER_FAN_INDEX]));
#endif