diff --git a/cores/esp32/HardwareSerial.cpp b/cores/esp32/HardwareSerial.cpp index 1b03d2a3..84124bd4 100644 --- a/cores/esp32/HardwareSerial.cpp +++ b/cores/esp32/HardwareSerial.cpp @@ -89,5 +89,5 @@ size_t HardwareSerial::write(const uint8_t *buffer, size_t size) HardwareSerial::operator bool() const { - return _uart != 0; + return true; }