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 <[email protected]>
  • Loading branch information
2 people authored and rgoulter committed Oct 4, 2020
1 parent 67490da commit c77cac7
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 c77cac7

Please sign in to comment.