mirror of https://gerrit.osmocom.org/simtrace2
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
This commit is contained in:
parent
a65fb1e319
commit
17bfa5273f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue