Sfoglia il codice sorgente

Require temp sensor for bed thermal protection

Scott Lahteine 9 anni fa
parent
commit
3bde4f4855
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      Marlin/temperature.cpp

+ 1
- 1
Marlin/temperature.cpp Vedi File

@@ -80,7 +80,7 @@ unsigned char soft_pwm_bed;
80 80
     static TRState thermal_runaway_state_machine[4] = { TRReset, TRReset, TRReset, TRReset };
81 81
     static millis_t thermal_runaway_timer[4]; // = {0,0,0,0};
82 82
   #endif
83
-  #ifdef THERMAL_PROTECTION_BED
83
+  #if defined(THERMAL_PROTECTION_BED) && TEMP_SENSOR_BED != 0
84 84
     static TRState thermal_runaway_bed_state_machine = TRReset;
85 85
     static millis_t thermal_runaway_bed_timer;
86 86
   #endif

Loading…
Annulla
Salva