Return true for boolean test on Serial

Fixes: https://github.com/espressif/arduino-esp32/issues/270
This commit is contained in:
me-no-dev 2017-03-20 11:26:32 +02:00
parent 9dae9cea37
commit 9388d8358e

View File

@ -89,5 +89,5 @@ size_t HardwareSerial::write(const uint8_t *buffer, size_t size)
HardwareSerial::operator bool() const
{
return _uart != 0;
return true;
}