mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-23 03:42:59 +00:00
Fix build. (#9163)
This commit is contained in:
parent
6d84795bc1
commit
fd4f102977
@ -41,7 +41,7 @@ volatile bool isLeftHand = true;
|
|||||||
static inline bool usbHasActiveConnection(void) { return USB_Device_IsAddressSet(); }
|
static inline bool usbHasActiveConnection(void) { return USB_Device_IsAddressSet(); }
|
||||||
static inline void usbDisable(void) { USB_Disable(); }
|
static inline void usbDisable(void) { USB_Disable(); }
|
||||||
# elif defined(PROTOCOL_CHIBIOS)
|
# elif defined(PROTOCOL_CHIBIOS)
|
||||||
static inline bool usbHasActiveConnection(void) { usbGetDriverStateI(&USBD1) == USB_ACTIVE; }
|
static inline bool usbHasActiveConnection(void) { return usbGetDriverStateI(&USBD1) == USB_ACTIVE; }
|
||||||
static inline void usbDisable(void) { usbStop(&USBD1); }
|
static inline void usbDisable(void) { usbStop(&USBD1); }
|
||||||
# elif defined(PROTOCOL_VUSB)
|
# elif defined(PROTOCOL_VUSB)
|
||||||
static inline bool usbHasActiveConnection(void) {
|
static inline bool usbHasActiveConnection(void) {
|
||||||
|
Loading…
Reference in New Issue
Block a user