mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-05-24 14:48:29 +02:00
Fix parity bit calculation for ESP8266SoftwareSerial (#1873)
This commit is contained in:
@@ -242,9 +242,9 @@ void ICACHE_RAM_ATTR HOT ESP8266SoftwareSerial::write_byte(uint8_t data) {
|
||||
bool parity_bit = false;
|
||||
bool need_parity_bit = true;
|
||||
if (this->parity_ == UART_CONFIG_PARITY_EVEN)
|
||||
parity_bit = true;
|
||||
else if (this->parity_ == UART_CONFIG_PARITY_ODD)
|
||||
parity_bit = false;
|
||||
else if (this->parity_ == UART_CONFIG_PARITY_ODD)
|
||||
parity_bit = true;
|
||||
else
|
||||
need_parity_bit = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user