Skip to content

Commit 52e1614

Browse files
author
blue-2357
committed
Return true for boolean test on Serial
Fixes: espressif/arduino-esp32#270
1 parent cf10f3f commit 52e1614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/esp32/HardwareSerial.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,5 @@ size_t HardwareSerial::write(const uint8_t *buffer, size_t size)
8989

9090
HardwareSerial::operator bool() const
9191
{
92-
return _uart != 0;
92+
return true;
9393
}

0 commit comments

Comments
 (0)