提交 9388d835 编写于 作者: M me-no-dev

Return true for boolean test on Serial

Fixes: https://github.com/espressif/arduino-esp32/issues/270
上级 9dae9cea
...@@ -89,5 +89,5 @@ size_t HardwareSerial::write(const uint8_t *buffer, size_t size) ...@@ -89,5 +89,5 @@ size_t HardwareSerial::write(const uint8_t *buffer, size_t size)
HardwareSerial::operator bool() const HardwareSerial::operator bool() const
{ {
return _uart != 0; return true;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册