From b89cafbdecff76b74dd8f797c149c03ed77a9ffd Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Thu, 17 Oct 2019 23:37:37 +0100 Subject: SPLIT - Remove NO_USB_STARTUP_CHECK requirement for usb detection (#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 * Also remove NO_USB_STARTUP_CHECK from vitamins_included/rev1 --- quantum/split_common/split_util.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c index 8983861bcc..5c548de059 100644 --- a/quantum/split_common/split_util.c +++ b/quantum/split_common/split_util.c @@ -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; } -- cgit v1.2.3