Skip to content

Commit 9388d83

Browse files
committed
Return true for boolean test on Serial
Fixes: #270
1 parent 9dae9ce commit 9388d83

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)