From c1f7bf876a67dc176a7a24b241c6dd3fe780082d Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 25 Sep 2022 13:54:24 -0700 Subject: [PATCH] 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 --- src/drivers/ao_led.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, -- 2.30.2