altos: Switch LED pin number to 8 bits
authorKeith Packard <keithp@keithp.com>
Sun, 25 Sep 2022 20:54:24 +0000 (13:54 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 26 Oct 2022 06:29:36 +0000 (23:29 -0700)
This assumes each port has fewer than 256 pins and avoids some
compiler warnings

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

index b32034e7d3f2f0903a03751e7c8210ffc17462ef..009e9bc23e434cd8496cd5177eb62257c299c805 100644 (file)
@@ -20,7 +20,7 @@
 
 static const struct {
        void            *port;
-       uint16_t        pin;
+       uint8_t         pin;
 } ao_leds[] = {
 #ifdef LED_0_PORT
     [0] { LED_0_PORT, LED_0_PIN },