aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quantum/split_common/split_util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c
index 9366c3297..076f18664 100644
--- a/quantum/split_common/split_util.c
+++ b/quantum/split_common/split_util.c
@@ -33,9 +33,11 @@ bool waitForUsb(void) {
33 wait_ms(100); 33 wait_ms(100);
34 } 34 }
35 35
36#if defined(__AVR__)
37 // Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow 36 // Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow
37#if defined(__AVR__)
38 (USBCON &= ~(_BV(USBE) | _BV(OTGPADE))); 38 (USBCON &= ~(_BV(USBE) | _BV(OTGPADE)));
39#else
40 usbStop(&USBD1);
39#endif 41#endif
40 42
41 return false; 43 return false;