Browse Source

Require temp sensor for bed thermal protection

Scott Lahteine 9 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,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…
Cancel
Save