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.
2 parents ac88015 + 5158aec commit db2bea8Copy full SHA for db2bea8
ports/raspberrypi/common-hal/rp2pio/StateMachine.c
@@ -640,9 +640,9 @@ static bool _transfer(rp2pio_statemachine_obj_t *self,
640
while (tx_remaining && !pio_sm_is_tx_fifo_full(self->pio, self->state_machine)) {
641
if (out_stride_in_bytes == 1) {
642
*tx_destination = *data_out;
643
- } else if (in_stride_in_bytes == 2) {
+ } else if (out_stride_in_bytes == 2) {
644
*((uint16_t*) tx_destination) = *((uint16_t*) data_out);
645
- } else if (in_stride_in_bytes == 4) {
+ } else if (out_stride_in_bytes == 4) {
646
*((uint32_t*) tx_destination) = *((uint32_t*) data_out);
647
}
648
data_out += out_stride_in_bytes;
0 commit comments