Avoid usage of deprecated function

This commit is contained in:
SukkoPera 2017-05-09 23:16:47 +02:00
parent 54cd854161
commit ad51f6f8f8
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ size_t n = 0;
size_t USBSerial::write(const uint8 *buf, uint32 len)
{
size_t n = 0;
if (!this->isConnected() || !buf) {
if (!(bool) *this || !buf) {
return 0;
}