mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user