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 <fauxpark@gmail.com>

* Also remove NO_USB_STARTUP_CHECK from vitamins_included/rev1
  • Loading branch information
zvecr authored Oct 17, 2019
1 parent 729d7cc commit b4d6e20
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 b4d6e20

Please sign in to comment.