From 0d531d96551abb6329e3513f5c10ad0c75250338 Mon Sep 17 00:00:00 2001 From: Dave Johnson Date: Fri, 15 Dec 2017 11:32:37 -0800 Subject: [PATCH] Missing HAS_HEAT_BED conditional Fixes issue found in #8779 --- Marlin/src/module/temperature.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Marlin/src/module/temperature.cpp b/Marlin/src/module/temperature.cpp index 5b22b2ba4..333bc9828 100644 --- a/Marlin/src/module/temperature.cpp +++ b/Marlin/src/module/temperature.cpp @@ -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