From e8c9377865f9ca9a92c9dcaead4545b1955845cc Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Fri, 22 Sep 2023 19:54:52 +0300 Subject: [PATCH] uart: fix swserial pin order fix #2592 --- code/espurna/uart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/espurna/uart.cpp b/code/espurna/uart.cpp index b3ef2b43..e4238f39 100644 --- a/code/espurna/uart.cpp +++ b/code/espurna/uart.cpp @@ -333,7 +333,7 @@ BasePortPtr software_serial_port( const int8_t tx_pin = (tx == GPIO_NONE) ? -1 : tx; const int8_t rx_pin = (rx == GPIO_NONE) ? -1 : rx; - auto* ptr = new SoftwareSerial(tx_pin, rx_pin, invert); + auto* ptr = new SoftwareSerial(rx_pin, tx_pin, invert); ptr->begin(baudrate, from_config<::SoftwareSerialConfig>(config)); return std::make_unique(