summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-09-17 07:18:12 -0700
committerkliment <kliment.yanev@gmail.com>2011-09-17 07:18:12 -0700
commit51a0f47d4791f77205d9a8d199b0242bf9b5beb0 (patch)
tree243cb9d8539b1c3311e5f776cbc9d9b0a6760f3a
parentf2d626836e07effe5dfa8d1b1a06b735a565bb42 (diff)
parentf14bac8a91a82fdc33b5c65d8033014ec5f45a6f (diff)
Merge pull request #90 from alexrj/init-led-pin
Initialize LED pin (was stuck after hard resets)
-rw-r--r--Sprinter/Sprinter.pde6
1 files changed, 6 insertions, 0 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index cc1434f..8e94db8 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -302,6 +302,12 @@ void setup()
SET_OUTPUT(FAN_PIN);
#endif
+ //Initialize LED Pin
+ #if (LED_PIN > -1)
+ SET_OUTPUT(LED_PIN);
+ WRITE(LED_PIN,LOW);
+ #endif
+
//Initialize Step Pins
#if (X_STEP_PIN > -1)
SET_OUTPUT(X_STEP_PIN);