Skip to content

Commit 8539d65

Browse files
committed
flip CTS and RTS pinmux to match RX and TX
1 parent 99b23b9 commit 8539d65

File tree

1 file changed

+4
-4
lines changed
  • ports/atmel-samd/common-hal/busio

1 file changed

+4
-4
lines changed

ports/atmel-samd/common-hal/busio/UART.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
129129
#endif
130130
tx_pinmux = PINMUX(tx->number, (i == 0) ? MUX_C : MUX_D);
131131
tx_pad = tx->sercom[i].pad;
132-
if (have_cts) {
133-
cts_pinmux = PINMUX(cts->number, (i == 0) ? MUX_C : MUX_D);
132+
if (have_rts) {
133+
rts_pinmux = PINMUX(rts->number, (i == 0) ? MUX_C : MUX_D);
134134
}
135135
if (rx == NULL) {
136136
sercom = potential_sercom;
@@ -144,8 +144,8 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
144144
rx->sercom[j].pad != tx_pad) {
145145
rx_pinmux = PINMUX(rx->number, (j == 0) ? MUX_C : MUX_D);
146146
rx_pad = rx->sercom[j].pad;
147-
if (have_rts) {
148-
rts_pinmux = PINMUX(rts->number, (j == 0) ? MUX_C : MUX_D);
147+
if (have_cts) {
148+
cts_pinmux = PINMUX(cts->number, (j == 0) ? MUX_C : MUX_D);
149149
}
150150
sercom = sercom_insts[rx->sercom[j].index];
151151
sercom_index = rx->sercom[j].index;

0 commit comments

Comments
 (0)