From: Keith Packard Date: Sun, 25 Sep 2022 20:54:24 +0000 (-0700) Subject: altos: Switch LED pin number to 8 bits X-Git-Tag: 1.9.13~1^2~26^2~54^2~8 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=1523a986a7c2e8402c628e2697e44fe6281c164e altos: Switch LED pin number to 8 bits This assumes each port has fewer than 256 pins and avoids some compiler warnings Signed-off-by: Keith Packard --- diff --git a/src/drivers/ao_led.c b/src/drivers/ao_led.c index b32034e7..009e9bc2 100644 --- a/src/drivers/ao_led.c +++ b/src/drivers/ao_led.c @@ -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 },