Fix UARTComponent hardware vs software UART0 conflict (#2229)

Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
Christian Ferbar
2021-09-04 04:49:34 +02:00
committed by GitHub
parent 54de0ca0da
commit 77508f7e44
2 changed files with 30 additions and 3 deletions
+5
View File
@@ -118,6 +118,11 @@ class UARTComponent : public Component, public Stream {
uint8_t stop_bits_;
uint8_t data_bits_;
UARTParityOptions parity_;
private:
#ifdef ARDUINO_ARCH_ESP8266
static bool serial0InUse;
#endif
};
#ifdef ARDUINO_ARCH_ESP32