We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a9034f commit f776749Copy full SHA for f776749
ports/raspberrypi/common-hal/rp2pio/StateMachine.c
@@ -894,8 +894,8 @@ bool common_hal_rp2pio_statemachine_background_write(rp2pio_statemachine_obj_t *
894
uint8_t pio_index = pio_get_index(self->pio);
895
uint8_t sm = self->state_machine;
896
897
- int pending_buffers = (once->info.buf != NULL) + (loop->info.buf != NULL);
898
- if (!once->info.buf) {
+ int pending_buffers = (once->info.len != 0) + (loop->info.len != 0);
+ if (!once->info.len) {
899
once = loop;
900
}
901
0 commit comments