Fix return type
This commit is contained in:
parent
38525521fd
commit
81b1b08b95
|
@ -186,7 +186,7 @@ uint8 USBSerial::getRTS(void) {
|
|||
return usb_cdcacm_get_rts();
|
||||
}
|
||||
|
||||
uint8 USBSerial::operator bool() {
|
||||
USBSerial::operator bool() {
|
||||
return usb_is_connected(USBLIB) && usb_is_configured(USBLIB) && usb_cdcacm_get_dtr();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue