From 9388d8358eefc1bdb7f500310c8365acb0899845 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Mon, 20 Mar 2017 11:26:32 +0200 Subject: [PATCH] Return true for boolean test on Serial Fixes: https://github.com/espressif/arduino-esp32/issues/270 --- cores/esp32/HardwareSerial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }