diff options
Diffstat (limited to 'firmware/usb.c')
-rw-r--r-- | firmware/usb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/usb.c b/firmware/usb.c index 2e978ff54e..962e373a67 100644 --- a/firmware/usb.c +++ b/firmware/usb.c @@ -297,6 +297,11 @@ void usb_start_monitoring(void) usb_monitor_enabled = true; } +bool usb_inserted(void) +{ + return usb_state == USB_INSERTED; +} + #else /* Dummy simulator functions */ |