瀏覽代碼

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>
sol 4 年之前
父節點
當前提交
01d2a03258
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      quantum/split_common/split_util.c

+ 1 - 1
quantum/split_common/split_util.c

@@ -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);