mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 19:40:29 +08:00
Disable usb on slave half to resolve random 'lockup' (#7649)
This commit is contained in:
parent
85f4c3ebb4
commit
f3bf301825
|
@ -33,9 +33,11 @@ bool waitForUsb(void) {
|
||||||
wait_ms(100);
|
wait_ms(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__AVR__)
|
|
||||||
// Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow
|
// Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow
|
||||||
|
#if defined(__AVR__)
|
||||||
(USBCON &= ~(_BV(USBE) | _BV(OTGPADE)));
|
(USBCON &= ~(_BV(USBE) | _BV(OTGPADE)));
|
||||||
|
#else
|
||||||
|
usbStop(&USBD1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue