summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsol <1731279+s-ol@users.noreply.github.com>2020-10-01 20:17:03 +0200
committerGitHub <noreply@github.com>2020-10-02 04:17:03 +1000
commit01d2a03258df465a7efcf33d9cc6f1751967c29a (patch)
tree12c4b27ee264e3e37cd2c627be49498bd8141758
parent1960e250485d4036623a045dd601e01343cafdd5 (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 90735eda44..e8e944d710 100644
--- a/quantum/split_common/split_util.c
+++ b/quantum/split_common/split_util.c
@@ -72,7 +72,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);