Pārlūkot izejas kodu

This ifdef is for bed code so should use bed constants for testing.

Without this fix, the code wont compile with extruder but without bed
runaway protection defined.
Mark Hindess 10 gadus atpakaļ
vecāks
revīzija
0ce252ba7a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      Marlin/temperature.cpp

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

@@ -572,7 +572,7 @@ void manage_heater()
572 572
 
573 573
   #if TEMP_SENSOR_BED != 0
574 574
   
575
-    #ifdef THERMAL_RUNAWAY_PROTECTION_PERIOD && THERMAL_RUNAWAY_PROTECTION_PERIOD > 0
575
+    #if defined(THERMAL_RUNAWAY_PROTECTION_BED_PERIOD) && THERMAL_RUNAWAY_PROTECTION_BED_PERIOD > 0
576 576
       thermal_runaway_protection(&thermal_runaway_bed_state_machine, &thermal_runaway_bed_timer, current_temperature_bed, target_temperature_bed, 9, THERMAL_RUNAWAY_PROTECTION_BED_PERIOD, THERMAL_RUNAWAY_PROTECTION_BED_HYSTERESIS);
577 577
     #endif
578 578
 

Notiek ielāde…
Atcelt
Saglabāt