Browse Source

Require temp sensor for bed thermal protection

Scott Lahteine 10 years ago
parent
commit
3bde4f4855
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/temperature.cpp

+ 1
- 1
Marlin/temperature.cpp View File

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

Loading…
Cancel
Save