summaryrefslogtreecommitdiff
path: root/Sprinter
diff options
context:
space:
mode:
authorblddk <michael.andresen@gmail.com>2011-08-03 12:44:28 +0300
committerblddk <michael.andresen@gmail.com>2011-08-03 12:44:28 +0300
commit02dfbc071d295e50f2bd752508226672850b7fe2 (patch)
treef06c622fdd2f70b897f178ffe4a39df14d4e1a1c /Sprinter
parentf131f08bb65891ffbdfe9857f30e6b251d65b3bb (diff)
Fixed so commenting out MINTEMP won't break compile, however, commenting out MINTEMP will then again allow the bed to be turned on, but not off, when there are no thermistor, or thermistor is broken.
Diffstat (limited to 'Sprinter')
-rw-r--r--Sprinter/Sprinter.pde4
1 files changed, 4 insertions, 0 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index 8639218..026daba 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -1498,7 +1498,11 @@ void manage_heater()
#endif
+ #ifdef MINTEMP
if(current_bed_raw >= target_bed_raw || current_bed_raw < minttemp)
+ #else
+ if(current_bed_raw >= target_bed_raw)
+ #endif
{
WRITE(HEATER_1_PIN,LOW);
}