summaryrefslogtreecommitdiff
path: root/quantum/split_common/split_util.c
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2020-05-22 06:25:03 +1000
committerGitHub <noreply@github.com>2020-05-22 06:25:03 +1000
commitfd4f1029771fba4d620ca6cfc9710ccbba421206 (patch)
tree433e84b8b2db9a3c1c68ba71c5ec2b3defd6ce1b /quantum/split_common/split_util.c
parent6d84795bc1e4b867725e3ddd906af9e125f71e3b (diff)
downloadqmk_firmware-fd4f1029771fba4d620ca6cfc9710ccbba421206.tar.gz
qmk_firmware-fd4f1029771fba4d620ca6cfc9710ccbba421206.zip
Fix build. (#9163)
Diffstat (limited to 'quantum/split_common/split_util.c')
-rw-r--r--quantum/split_common/split_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c
index 6f376ab408..dfd06f5f94 100644
--- a/quantum/split_common/split_util.c
+++ b/quantum/split_common/split_util.c
@@ -41,7 +41,7 @@ volatile bool isLeftHand = true;
static inline bool usbHasActiveConnection(void) { return USB_Device_IsAddressSet(); }
static inline void usbDisable(void) { USB_Disable(); }
# 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); }
# elif defined(PROTOCOL_VUSB)
static inline bool usbHasActiveConnection(void) {