Fixed broken LED definitions that were inserted during the Apimote bringup.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Tue, 31 Jul 2012 22:19:16 +0000 (22:19 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Tue, 31 Jul 2012 22:19:16 +0000 (22:19 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1211 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

firmware/lib/msp430.c

index 0f30e33..db3e56d 100644 (file)
@@ -41,19 +41,27 @@ void led_toggle()
 //LED2 and LED3 are only used by the telosb and apimote for now
 void led2_on()
 {
 //LED2 and LED3 are only used by the telosb and apimote for now
 void led2_on()
 {
+#ifdef PLED2OUT
     PLED2OUT &= ~PLED2PIN;
     PLED2OUT &= ~PLED2PIN;
+#endif
 }
 void led2_off()
 {
 }
 void led2_off()
 {
+#ifdef PLED2OUT
     PLED2OUT |= PLED2PIN;
     PLED2OUT |= PLED2PIN;
+#endif
 }
 void led3_on()
 {
 }
 void led3_on()
 {
+#ifdef PLED3OUT
     PLED3OUT &= ~PLED3PIN;
     PLED3OUT &= ~PLED3PIN;
+#endif
 }
 void led3_off()
 {
 }
 void led3_off()
 {
+#ifdef PLED3OUT
     PLED3OUT |= PLED3PIN;
     PLED3OUT |= PLED3PIN;
+#endif
 }
 
 //! Initialize MSP430 registers and all that jazz.
 }
 
 //! Initialize MSP430 registers and all that jazz.