Skip to content

Commit 39135c1

Browse files
committed
Use proper pin for CC26xx UART RX
`configure` was incorrectly using the stored `tx_pin` twice, for configuring the RX and TX pin. So UART wasn't actually working at all...
1 parent 6715c6f commit 39135c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chips/cc26xx/src/uart.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl UART {
107107
}
108108

109109
self.tx_pin.map_or(ReturnCode::EOFF, |tx_pin| {
110-
self.tx_pin.map_or(ReturnCode::EOFF, |rx_pin| {
110+
self.rx_pin.map_or(ReturnCode::EOFF, |rx_pin| {
111111
unsafe {
112112
// Make sure the TX pin is output/high before assigning it to UART control
113113
// to avoid falling edge glitches

0 commit comments

Comments
 (0)