Skip to content

Commit f1a195d

Browse files
committed
🐛 Fix stm32f1 uart2 pin numbers
1 parent 2a62e20 commit f1a195d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stm32f1/uart.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ uart::uart(std::uint8_t p_port,
121121
break;
122122
case 2:
123123
port_tx = 'A';
124-
pin_tx = 3;
124+
pin_tx = 2;
125125
port_rx = 'A';
126-
pin_rx = 2;
126+
pin_rx = 3;
127127
m_dma = 6;
128128
m_id = peripheral::usart2;
129129
m_uart = usart2;

0 commit comments

Comments
 (0)