File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
libraries/mbed/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0+ Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -133,10 +133,9 @@ uint32_t serial_find_mux_settings (serial_t *obj)
133
133
if ((pSERIAL_S (obj )-> pins [USART_RXFLOW_INDEX ] == NC ) && (pSERIAL_S (obj )-> pins [USART_TXFLOW_INDEX ] == NC )) {
134
134
if (pinpad [USART_TX_INDEX ] == 0 ) {
135
135
mux_setting |= SERCOM_USART_CTRLA_TXPO (0 );
136
- } else if (pinpad [USART_RX_INDEX ] == 2 ) {
136
+ } else if (pinpad [USART_TX_INDEX ] == 2 ) {
137
137
mux_setting |= SERCOM_USART_CTRLA_TXPO (1 );
138
138
} else {
139
- mux_setting = mux_setting ; // dummy condition
140
139
}
141
140
} else { // for hardware flow control and uart // expecting the tx in pad 0, rts in pad2 and cts in pad 3
142
141
if ((pinpad [USART_TX_INDEX ] == 0 ) && (pinpad [USART_RXFLOW_INDEX ]/*rts pin*/ == 2 ) && (pinpad [USART_TXFLOW_INDEX ] /*cts pin*/ == 3 )) {
You can’t perform that action at this time.
0 commit comments