8000 Neopixel rp2040 fix by gamblor21 · Pull Request #4149 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

Neopixel rp2040 fix #4149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ports/raspberrypi/common-hal/rp2pio/StateMachine.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ static bool _transfer(rp2pio_statemachine_obj_t *self,
size_t rx_remaining = in_len;
size_t tx_remaining = out_len;

RUN_BACKGROUND_TASKS; // clear any pending tasks before writing the small number of bytes
while (rx_remaining || tx_remaining) {
if (tx_remaining && !pio_sm_is_tx_fifo_full(self->pio, self->state_machine)) {
*tx_destination = *data_out;
Expand Down
0