Missing HAS_HEAT_BED conditional

Fixes issue found in #8779
This commit is contained in:
Dave Johnson 2017-12-15 11:32:37 -08:00
parent 368c124de8
commit 0d531d9655

View File

@ -965,7 +965,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