mirror of
https://github.com/esphome/esphome.git
synced 2025-10-29 22:24:26 +00:00
Enable a bunch of clang-tidy checks (#2149)
This commit is contained in:
@@ -214,9 +214,7 @@ void IRAM_ATTR ESP8266SoftwareSerial::gpio_intr(ESP8266SoftwareSerial *arg) {
|
||||
|
||||
/* If parity is enabled, just read it and ignore it. */
|
||||
/* TODO: Should we check parity? Or is it too slow for nothing added..*/
|
||||
if (arg->parity_ == UART_CONFIG_PARITY_EVEN)
|
||||
arg->read_bit_(&wait, start);
|
||||
else if (arg->parity_ == UART_CONFIG_PARITY_ODD)
|
||||
if (arg->parity_ == UART_CONFIG_PARITY_EVEN || arg->parity_ == UART_CONFIG_PARITY_ODD)
|
||||
arg->read_bit_(&wait, start);
|
||||
|
||||
// Stop bit
|
||||
|
||||
Reference in New Issue
Block a user