Return true for boolean test on Serial
Fixes: https://github.com/espressif/arduino-esp32/issues/270
This commit is contained in:
parent
9dae9cea37
commit
9388d8358e
@ -89,5 +89,5 @@ size_t HardwareSerial::write(const uint8_t *buffer, size_t size)
|
||||
|
||||
HardwareSerial::operator bool() const
|
||||
{
|
||||
return _uart != 0;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user