Skip to content

Commit 060da55

Browse files
henrlarugeGerritsen
authored andcommitted
mpsl: add missing bound condition in loop
The condition to not iterate out of bounds on array was missing. Signed-off-by: Henrik Lander <[email protected]>
1 parent 47ba9f2 commit 060da55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/mpsl/pin_debug/mpsl_pin_debug_radio_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static int m_ppi_config(void)
4747
eep[2] = nrf_radio_event_address_get(NRF_RADIO, NRF_RADIO_EVENT_ADDRESS);
4848
eep[3] = nrf_radio_event_address_get(NRF_RADIO, NRF_RADIO_EVENT_END);
4949
#endif
50-
for (size_t i = 0; ARRAY_SIZE(tep); i++) {
50+
for (size_t i = 0; i < ARRAY_SIZE(tep); i++) {
5151
#if defined(DPPI_PRESENT)
5252
nrfx_gppi_ep_attach(tep[i], handle[i]);
5353
#else

0 commit comments

Comments
 (0)