Browse Source

uart: fix swserial pin order

fix #2592
dev
Maxim Prokhorov 7 months ago
parent
commit
e8c9377865
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/uart.cpp

+ 1
- 1
code/espurna/uart.cpp View File

@ -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<BasePort>(


Loading…
Cancel
Save