Skip to content

Commit

Permalink
SPLIT - Remove NO_USB_STARTUP_CHECK requirement for usb detection (qm…
Browse files Browse the repository at this point in the history
…k#7053)

* Avoid NO_USB_STARTUP_CHECK - Disable USB as checks seem to enable it somehow

* Update quantum/split_common/split_util.c

Co-Authored-By: fauxpark <[email protected]>

* Also remove NO_USB_STARTUP_CHECK from vitamins_included/rev1
  • Loading branch information
zvecr authored and drashna committed Jan 2, 2020
1 parent 4549395 commit 5057786
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions quantum/split_common/split_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ 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
(USBCON &= ~(_BV(USBE) | _BV(OTGPADE)));
#endif

return false;
}

Expand Down

0 comments on commit 5057786

Please sign in to comment.