diff options
author | Eric Wild <ewild@sysmocom.de> | 2021-10-20 19:35:30 +0200 |
---|---|---|
committer | Eric Wild <ewild@sysmocom.de> | 2021-10-20 20:03:06 +0200 |
commit | 17bfa5273f773bffc3fd7129baf07aad5f1ac0a1 (patch) | |
tree | 44d0d6382e5e348c6452421c4db8c27ce6988932 | |
parent | a65fb1e319ad71d576729019c0f25b087644d136 (diff) |
fix bootloader led config crash
This led to occasional crashes for targets with leds since it was
introduced 3 years ago
The interesting thing is that most of the time it didn't crash...
Change-Id: Ia6a1b1fc0e44a301b4fb1d9c9fdbc27d61dcab97
-rw-r--r-- | firmware/apps/dfu/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/apps/dfu/main.c b/firmware/apps/dfu/main.c index f8c0c53..d5a6fa6 100644 --- a/firmware/apps/dfu/main.c +++ b/firmware/apps/dfu/main.c @@ -271,7 +271,7 @@ extern int main(void) #ifdef PINS_LEDS /* Configure LED */ - PIO_Configure(pinsLeds, sizeof(pinsLeds)); + PIO_Configure(pinsLeds, PIO_LISTSIZE(pinsLeds)); PIO_Set(&pinsLeds[LED_NUM_RED]); PIO_Clear(&pinsLeds[LED_NUM_GREEN]); #endif |