Browse Source

Disable usb on slave half to resolve random 'lockup' (#7649)

pull/7657/head
Joel Challis 4 years ago
committed by GitHub
parent
commit
f3bf301825
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      quantum/split_common/split_util.c

+ 3
- 1
quantum/split_common/split_util.c View 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;


Loading…
Cancel
Save