]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Disable usb on slave half to resolve random 'lockup' (#7649)
authorJoel Challis <git@zvecr.com>
Mon, 16 Dec 2019 16:33:48 +0000 (16:33 +0000)
committerGitHub <noreply@github.com>
Mon, 16 Dec 2019 16:33:48 +0000 (16:33 +0000)
quantum/split_common/split_util.c

index 9366c3297a3774bafd5545c39fb7bfdfb0df24fc..076f186649b0265c5fbd4a5a055e712198a58d98 100644 (file)
@@ -33,9 +33,11 @@ bool waitForUsb(void) {
         wait_ms(100);
     }
 
-#if defined(__AVR__)
     // Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow
+#if defined(__AVR__)
     (USBCON &= ~(_BV(USBE) | _BV(OTGPADE)));
+#else
+    usbStop(&USBD1);
 #endif
 
     return false;