Avoid usage of deprecated function
This commit is contained in:
parent
54cd854161
commit
ad51f6f8f8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue