File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
ports/atmel-samd/common-hal/busio Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,8 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
129
129
#endif
130
130
tx_pinmux = PINMUX (tx -> number , (i == 0 ) ? MUX_C : MUX_D );
131
131
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 );
134
134
}
135
135
if (rx == NULL ) {
136
136
sercom = potential_sercom ;
@@ -144,8 +144,8 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
144
144
rx -> sercom [j ].pad != tx_pad ) {
145
145
rx_pinmux = PINMUX (rx -> number , (j == 0 ) ? MUX_C : MUX_D );
146
146
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 );
149
149
}
150
150
sercom = sercom_insts [rx -> sercom [j ].index ];
151
151
sercom_index = rx -> sercom [j ].index ;
You can’t perform that action at this time.
0 commit comments