From b360bb9ff9301ebff652b54aafa3a1cdc5d51982 Mon Sep 17 00:00:00 2001 From: Giuliano <3684609+GMagician@users.noreply.github.com> Date: Sat, 19 May 2018 22:38:41 +0200 Subject: [PATCH] [1.1.x] Temperature reading fix (#10775) #10774 counterpart --- Marlin/temperature.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Marlin/temperature.cpp b/Marlin/temperature.cpp index 23c5e1e9c..e94c6b03b 100644 --- a/Marlin/temperature.cpp +++ b/Marlin/temperature.cpp @@ -958,30 +958,40 @@ float Temperature::analog2temp(const int raw, const uint8_t e) { return TEMP_AD595(raw); #elif ENABLED(HEATER_0_USES_AD8495) return TEMP_AD8495(raw); + #else + break; #endif case 1: #if ENABLED(HEATER_1_USES_AD595) return TEMP_AD595(raw); #elif ENABLED(HEATER_1_USES_AD8495) return TEMP_AD8495(raw); + #else + break; #endif case 2: #if ENABLED(HEATER_2_USES_AD595) return TEMP_AD595(raw); #elif ENABLED(HEATER_2_USES_AD8495) return TEMP_AD8495(raw); + #else + break; #endif case 3: #if ENABLED(HEATER_3_USES_AD595) return TEMP_AD595(raw); #elif ENABLED(HEATER_3_USES_AD8495) return TEMP_AD8495(raw); + #else + break; #endif case 4: #if ENABLED(HEATER_4_USES_AD595) return TEMP_AD595(raw); #elif ENABLED(HEATER_4_USES_AD8495) return TEMP_AD8495(raw); + #else + break; #endif default: break; }