Add explicit #define for bogus temp override

The code to ignore the "bad thermistor reading failsafe"
suicide function depends on the existing of the PS_ON pin
feature.  But in some boards this shouldn't be the case
Fix this by adding an explicit definition to make our
intentions more clear and separable.
This commit is contained in:
Phil Hord 2012-02-26 18:46:34 -05:00 committed by Phil Hord
parent 97d42ca2b2
commit 740f0c7690
2 changed files with 5 additions and 2 deletions

View file

@ -111,6 +111,9 @@
#endif #endif
#define PS_ON_PIN 15 #define PS_ON_PIN 15
// Gen 1.3 and earlier supplied thermistor power via PS_ON
// Need to ignore the bad thermistor readings on those units
#define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
//our pin for debugging. //our pin for debugging.
#define DEBUG_PIN 0 #define DEBUG_PIN 0

View file

@ -851,7 +851,7 @@ ISR(TIMER0_COMPB_vect)
for(unsigned char e = 0; e < EXTRUDERS; e++) { for(unsigned char e = 0; e < EXTRUDERS; e++) {
if(current_raw[e] >= maxttemp[e]) { if(current_raw[e] >= maxttemp[e]) {
target_raw[e] = 0; target_raw[e] = 0;
#if (PS_ON != -1) #ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
{ {
max_temp_error(e); max_temp_error(e);
kill();; kill();;
@ -860,7 +860,7 @@ ISR(TIMER0_COMPB_vect)
} }
if(current_raw[e] <= minttemp[e]) { if(current_raw[e] <= minttemp[e]) {
target_raw[e] = 0; target_raw[e] = 0;
#if (PS_ON != -1) #ifndef BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
{ {
min_temp_error(e); min_temp_error(e);
kill(); kill();