Skip to content

Commit

Permalink
Fix SPLIT_KEYBOARD compilation for ATMega*U2, which doesn't have VBUS…
Browse files Browse the repository at this point in the history
…/OTG control (qmk#10460)

Co-authored-by: s-ol <s-ol@users.noreply.github.com>
  • Loading branch information
2 people authored and drashna committed Nov 24, 2020
1 parent 93434b8 commit 98dd583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/split_common/split_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 98dd583

Please sign in to comment.