Fix current_temperature_chamber compile error

Fix #10505
This commit is contained in:
Scott Lahteine 2018-04-24 07:53:45 -05:00
parent 50cc55d172
commit ad3b95c8ea
2 changed files with 7 additions and 8 deletions

View file

@ -559,8 +559,11 @@ int Temperature::getHeaterPower(const int heater) {
HOTEND_LOOP()
if (current_temperature[e] > EXTRUDER_AUTO_FAN_TEMPERATURE)
SBI(fanState, pgm_read_byte(&fanBit[e]));
if (current_temperature_chamber > EXTRUDER_AUTO_FAN_TEMPERATURE)
SBI(fanState, pgm_read_byte(&fanBit[5]));
#if HAS_TEMP_CHAMBER
if (current_temperature_chamber > EXTRUDER_AUTO_FAN_TEMPERATURE)
SBI(fanState, pgm_read_byte(&fanBit[5]));
#endif
uint8_t fanDone = 0;
for (uint8_t f = 0; f < COUNT(fanPin); f++) {