Skip to content

Commit 4b63a8c

Browse files
committed
rp2pio: allow keyboard interrupt while waiting for tx fifo to empty (& stall)
1 parent d0eab5c commit 4b63a8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/raspberrypi/common-hal/rp2pio/StateMachine.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,9 @@ static bool _transfer(rp2pio_statemachine_obj_t *self,
673673
while (!pio_sm_is_tx_fifo_empty(self->pio, self->state_machine) ||
674674
(self->wait_for_txstall && (self->pio->fdebug & stall_mask) == 0)) {
675675
RUN_BACKGROUND_TASKS;
676+
if (mp_hal_is_interrupted()) {
677+
break;
678+
}
676679
}
677680
}
678681
return true;

0 commit comments

Comments
 (0)