diff options
author | sol <1731279+s-ol@users.noreply.github.com> | 2020-10-01 20:17:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 04:17:03 +1000 |
commit | 01d2a03258df465a7efcf33d9cc6f1751967c29a (patch) | |
tree | 12c4b27ee264e3e37cd2c627be49498bd8141758 | |
parent | 1960e250485d4036623a045dd601e01343cafdd5 (diff) | |
download | qmk_firmware-01d2a03258df465a7efcf33d9cc6f1751967c29a.tar.gz qmk_firmware-01d2a03258df465a7efcf33d9cc6f1751967c29a.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c index 90735eda4..e8e944d71 100644 --- a/quantum/split_common/split_util.c +++ b/quantum/split_common/split_util.c | |||
@@ -72,7 +72,7 @@ bool usbIsActive(void) { | |||
72 | 72 | ||
73 | return false; | 73 | return false; |
74 | } | 74 | } |
75 | #elif defined(PROTOCOL_LUFA) | 75 | #elif defined(PROTOCOL_LUFA) && defined(OTGPADE) |
76 | static inline bool usbIsActive(void) { | 76 | static inline bool usbIsActive(void) { |
77 | USB_OTGPAD_On(); // enables VBUS pad | 77 | USB_OTGPAD_On(); // enables VBUS pad |
78 | wait_us(5); | 78 | wait_us(5); |