Pārlūkot izejas kodu

Merge pull request #8792 from fiveangle/bf2-HAS_HEAT_BED_conditional

[2.0.x] Missing HAS_HEAT_BED conditional
Scott Lahteine 7 gadus atpakaļ
vecāks
revīzija
c5632bb91b
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3
    1
      Marlin/src/module/temperature.cpp

+ 3
- 1
Marlin/src/module/temperature.cpp Parādīt failu

@@ -965,7 +965,9 @@ void Temperature::updateTemperaturesFromRawValues() {
965 965
   #endif
966 966
   HOTEND_LOOP()
967 967
     current_temperature[e] = Temperature::analog2temp(current_temperature_raw[e], e);
968
-  current_temperature_bed = Temperature::analog2tempBed(current_temperature_bed_raw);
968
+  #if HAS_TEMP_BED
969
+    current_temperature_bed = Temperature::analog2tempBed(current_temperature_bed_raw);
970
+  #endif
969 971
   #if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
970 972
     redundant_temperature = Temperature::analog2temp(redundant_temperature_raw, 1);
971 973
   #endif

Notiek ielāde…
Atcelt
Saglabāt