Skip to content

Commit

Permalink
Disable usb on slave half to resolve random 'lockup' (qmk#7649)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and patrl committed Dec 29, 2019
1 parent f0a5ab6 commit 1b2621f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion quantum/split_common/split_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1b2621f

Please sign in to comment.