Skip to content

Commit af68bbd

Browse files
committed
bugfix: iobank0_hw->intr has six elements for RP2350
1 parent ba66d2b commit af68bbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/raspberrypi/common-hal/alarm/pin/PinAlarm.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ void alarm_pin_pinalarm_reset(void) {
9797
woke_up = false;
9898

9999
// Clear all GPIO interrupts
100+
#ifdef PICO_RP2040
100101
for (uint8_t i = 0; i < 4; i++) {
102+
#else
103+
for (uint8_t i = 0; i < 6; i++) {
104+
#endif
101105
iobank0_hw->intr[i] = 0;
102106
}
103107

0 commit comments

Comments
 (0)