forked from mirrors/qmk_firmware
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>
This commit is contained in:
parent
1960e25048
commit
01d2a03258
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ bool usbIsActive(void) {
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#elif defined(PROTOCOL_LUFA)
|
#elif defined(PROTOCOL_LUFA) && defined(OTGPADE)
|
||||||
static inline bool usbIsActive(void) {
|
static inline bool usbIsActive(void) {
|
||||||
USB_OTGPAD_On(); // enables VBUS pad
|
USB_OTGPAD_On(); // enables VBUS pad
|
||||||
wait_us(5);
|
wait_us(5);
|
||||||
|
|
Loading…
Reference in a new issue