Skip to content

Commit 54cd854

Browse files
committed
Tag isConnected() with __attribute__(deprecated)
1 parent 81b1b08 commit 54cd854

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

STM32F1/cores/maple/usb_serial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class USBSerial : public Stream {
8080
*
8181
* Deprecated, use the above.
8282
*/
83-
uint8 isConnected() { return (bool) *this; }
83+
uint8 isConnected() __attribute__((deprecated("Use !Serial instead"))) { return (bool) *this; }
8484
};
8585

8686
#ifdef SERIAL_USB

0 commit comments

Comments
 (0)