altos: HAS_LED is useless; remove it
authorKeith Packard <keithp@keithp.com>
Sat, 29 Mar 2014 06:33:25 +0000 (23:33 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 29 Mar 2014 06:33:25 +0000 (23:33 -0700)
ao_flight was trying to decide whether to turn off the red LED by
checking whether HAS_LED was defined. And yet, none of the flight
firmware defines that anymore, except for easymini which defines it to
zero.

Remove all uses and defines of this value, substituting AO_LED_RED in
ao_flight.c, which has to be defined for the ao_led_off call to work.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_flight.c
src/easymini-v1.0/ao_pins.h
src/lpcxpresso/ao_pins.h
src/usbtrng/ao_pins.h

index 702c340385177df203a000494ad7fef49c190a88..24099347ce4466589592c4d49ffc78775de867fe 100644 (file)
@@ -143,7 +143,7 @@ ao_flight(void)
                                ao_rdf_set(1);
                                ao_telemetry_set_interval(AO_TELEMETRY_INTERVAL_PAD);
 #endif
-#if HAS_LED
+#if AO_LED_RED
                                /* signal successful initialization by turning off the LED */
                                ao_led_off(AO_LED_RED);
 #endif
@@ -160,7 +160,7 @@ ao_flight(void)
                                ao_packet_slave_start();
 #endif
 
-#if HAS_LED
+#if AO_LED_RED
                                /* signal successful initialization by turning off the LED */
                                ao_led_off(AO_LED_RED);
 #endif
index e721030d84201311706cdee0a99364bdf1f661c4..6757047f44ec734fdda09b410ae164da334aacf8 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #define HAS_BEEP       1
-#define        HAS_LED         0
 
 #define AO_STACK_SIZE  384
 
index c0074ce2989ad8e97b5de8152d7765fbc2d62897..0ffc2fad3d4c5b2d6699844e476a2633c5a78e09 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #define HAS_BEEP       0
-#define        HAS_LED         1
 
 /* Crystal on the board */
 #define AO_LPC_CLKIN   12000000
index 9c8fa8312fdfbea403929e3dd5cc41d9eb216a1e..b1fa6eb9e945682d63a9b98ecc2bc4997c8b0393 100644 (file)
@@ -16,7 +16,6 @@
  */
 
 #define HAS_BEEP       0
-#define        HAS_LED         1
 
 #define AO_STACK_SIZE  384