summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsol <1731279+s-ol@users.noreply.github.com>2020-10-01 20:17:03 +0200
committerDrashna Jael're <drashna@live.com>2021-01-12 22:43:30 -0800
commit639dbd16fc1f3dbb1609c0aefa5bd38581f1e2b7 (patch)
tree708a5995dcbdcb1d37afa0279bbed7f60d16dcc7
parent46647a3f932089ac7566bd36b268960e6840f114 (diff)
Fix SPLIT_KEYBOARD compilation for ATMega*U2, which doesn't have VBUS/OTG control (#10460)
Co-authored-by: s-ol <s-ol@users.noreply.github.com>
-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 0850d8041f..bc486db7a4 100644
--- a/quantum/split_common/split_util.c
+++ b/quantum/split_common/split_util.c
@@ -69,7 +69,7 @@ bool usbIsActive(void) {
return false;
}
-#elif defined(PROTOCOL_LUFA)
+#elif defined(PROTOCOL_LUFA) && defined(OTGPADE)
static inline bool usbIsActive(void) {
USB_OTGPAD_On(); // enables VBUS pad
wait_us(5);