Skip to content

Commit

Permalink
uart: fix swserial pin order
Browse files Browse the repository at this point in the history
fix #2592
  • Loading branch information
mcspr committed Sep 22, 2023
1 parent 4f22960 commit e8c9377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/espurna/uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>(
Expand Down

0 comments on commit e8c9377

Please sign in to comment.