From 817eb5a5bad9fb9ec1f05728090a957725245c5b Mon Sep 17 00:00:00 2001 From: Dave Johnson Date: Fri, 15 Dec 2017 11:36:28 -0800 Subject: [PATCH] Missing HAS_HEAT_BED conditional Fixes issue found in #8779 --- Marlin/temperature.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index d8906a54f7..e3aaa47a7b 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -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