altos/ao_pad: Use AO_LED_TYPE for computing active LEDs.
authorKeith Packard <keithp@keithp.com>
Sun, 17 Jun 2018 19:29:36 +0000 (12:29 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 17 Jun 2018 19:29:36 +0000 (12:29 -0700)
instead of uint8_t

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_pad.c

index ed749d1cf756e4be62a961abab7e8bf69fc4d866..499b523828c6e31065ecf52a4ece7bbc6cd94679 100644 (file)
@@ -189,7 +189,7 @@ ao_pad_monitor(void)
 {
        uint8_t                 c;
        uint8_t                 sample;
-       __pdata uint8_t         prev = 0, cur = 0;
+       __pdata AO_LED_TYPE     prev = 0, cur = 0;
        __pdata uint8_t         beeping = 0;
        __xdata volatile struct ao_data *packet;
        __pdata uint16_t        arm_beep_time = 0;