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 (#10460)

Co-authored-by: s-ol <s-ol@users.noreply.github.com>
  • Loading branch information
s-ol and s-ol committed Oct 1, 2020
1 parent 1960e25 commit 01d2a03
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 @@ -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);
Expand Down

0 comments on commit 01d2a03

Please sign in to comment.