Skip to content

Commit ad51f6f

Browse files
committed
Avoid usage of deprecated function
1 parent 54cd854 commit ad51f6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

STM32F1/cores/maple/usb_serial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ size_t n = 0;
107107
size_t USBSerial::write(const uint8 *buf, uint32 len)
108108
{
109109
size_t n = 0;
110-
if (!this->isConnected() || !buf) {
110+
if (!(bool) *this || !buf) {
111111
return 0;
112112
}
113113

0 commit comments

Comments
 (0)