Преглед изворни кода

Merge pull request #8791 from fiveangle/bf1-HAS_HEAT_BED_conditional

[1.1.x] Missing HAS_HEAT_BED conditional
Scott Lahteine пре 6 година
родитељ
комит
b10831d58e
No account linked to committer's email address
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3
    1
      Marlin/temperature.cpp

+ 3
- 1
Marlin/temperature.cpp Прегледај датотеку

@@ -963,7 +963,9 @@ void Temperature::updateTemperaturesFromRawValues() {
963 963
   #endif
964 964
   HOTEND_LOOP()
965 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 969
   #if ENABLED(TEMP_SENSOR_1_AS_REDUNDANT)
968 970
     redundant_temperature = Temperature::analog2temp(redundant_temperature_raw, 1);
969 971
   #endif

Loading…
Откажи
Сачувај