mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-29 02:07:15 +02:00
Return true for boolean test on Serial
Fixes: https://github.com/espressif/arduino-esp32/issues/270
This commit is contained in:
@ -89,5 +89,5 @@ size_t HardwareSerial::write(const uint8_t *buffer, size_t size)
|
||||
|
||||
HardwareSerial::operator bool() const
|
||||
{
|
||||
return _uart != 0;
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user