Skip to content

Commit db2bea8

Browse files
committed
Merge remote-tracking branch 'origin/main' into main
2 parents ac88015 + 5158aec commit db2bea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,9 +640,9 @@ static bool _transfer(rp2pio_statemachine_obj_t *self,
640640
while (tx_remaining && !pio_sm_is_tx_fifo_full(self->pio, self->state_machine)) {
641641
if (out_stride_in_bytes == 1) {
642642
*tx_destination = *data_out;
643-
} else if (in_stride_in_bytes == 2) {
643+
} else if (out_stride_in_bytes == 2) {
644644
*((uint16_t*) tx_destination) = *((uint16_t*) data_out);
645-
} else if (in_stride_in_bytes == 4) {
645+
} else if (out_stride_in_bytes == 4) {
646646
*((uint32_t*) tx_destination) = *((uint32_t*) data_out);
647647
}
648648
data_out += out_stride_in_bytes;

0 commit comments

Comments
 (0)