summaryrefslogtreecommitdiff
path: root/Sprinter/Sprinter.pde
diff options
context:
space:
mode:
Diffstat (limited to 'Sprinter/Sprinter.pde')
-rw-r--r--Sprinter/Sprinter.pde9
1 files changed, 9 insertions, 0 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index 8e94db8..e3f60b2 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -302,6 +302,12 @@ void setup()
SET_OUTPUT(FAN_PIN);
#endif
+ //Initialize Alarm Pin
+ #if (ALARM_PIN > -1)
+ SET_OUTPUT(ALARM_PIN);
+ WRITE(ALARM_PIN,LOW);
+ #endif
+
//Initialize LED Pin
#if (LED_PIN > -1)
SET_OUTPUT(LED_PIN);
@@ -1471,6 +1477,9 @@ void manage_heater()
#ifdef MAXTEMP
if(current_raw >= maxttemp) {
target_raw = 0;
+ #if (ALARM_PIN > -1)
+ WRITE(ALARM_PIN,HIGH);
+ #endif
}
#endif
#if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675) || defined (HEATER_USES_AD595)