Browse Source

Missing HAS_HEAT_BED conditional

Fixes issue found in #8779
Dave Johnson 7 years ago
parent
commit
817eb5a5ba
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Marlin/temperature.cpp

+ 3
- 1
Marlin/temperature.cpp View File

963
   #endif
963
   #endif
964
   HOTEND_LOOP()
964
   HOTEND_LOOP()
965
     current_temperature[e] = Temperature::analog2temp(current_temperature_raw[e], e);
965
     current_temperature[e] = Temperature::analog2temp(current_temperature_raw[e], e);
966
-  current_temperature_bed = Temperature::analog2tempBed(current_temperature_bed_raw);
966
+  #if HAS_TEMP_BED
967
+    current_temperature_bed = Temperature::analog2tempBed(current_temperature_bed_raw);
968
+  #endif
967
   #if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
969
   #if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
968
     redundant_temperature = Temperature::analog2temp(redundant_temperature_raw, 1);
970
     redundant_temperature = Temperature::analog2temp(redundant_temperature_raw, 1);
969
   #endif
971
   #endif

Loading…
Cancel
Save