Skip to content

Commit

Permalink
Missing HAS_HEAT_BED conditional
Browse files Browse the repository at this point in the history
Fixes issue found in MarlinFirmware#8779
  • Loading branch information
fiveangle committed Dec 15, 2017
1 parent f36f91d commit 817eb5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Marlin/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,9 @@ void Temperature::updateTemperaturesFromRawValues() {
#endif
HOTEND_LOOP()
current_temperature[e] = Temperature::analog2temp(current_temperature_raw[e], e);
current_temperature_bed = Temperature::analog2tempBed(current_temperature_bed_raw);
#if HAS_TEMP_BED
current_temperature_bed = Temperature::analog2tempBed(current_temperature_bed_raw);
#endif
#if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
redundant_temperature = Temperature::analog2temp(redundant_temperature_raw, 1);
#endif
Expand Down

0 comments on commit 817eb5a

Please sign in to comment.