Skip to content

Commit f0246df

Browse files
nordic-aukojukkar
authored andcommitted
[nrf noup] boot/zephyr/nrf_cleanup: fix index error
nrf-squash! [nrf noup] boot/zephyr/nrf_cleanup: cleanup uarte pins Fix indexing variable mismatch. Signed-off-by: Audun Korneliussen <[email protected]> (cherry picked from commit 58175b6)
1 parent b4f27bb commit f0246df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/zephyr/nrf_cleanup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void nrf_cleanup_peripheral(void)
131131

132132
for (int j = 0; j < 4; j++) {
133133
if (pin[j] != NRF_UARTE_PSEL_DISCONNECTED) {
134-
nrfy_gpio_cfg_default(pin[i]);
134+
nrfy_gpio_cfg_default(pin[j]);
135135
}
136136
}
137137
#endif

0 commit comments

Comments
 (0)