summaryrefslogtreecommitdiff
path: root/quantum/split_common
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2019-10-17 23:37:37 +0100
committerGitHub <noreply@github.com>2019-10-17 23:37:37 +0100
commit5dc91ddc60f0fd1f277345ccf20e17a8ab684cca (patch)
tree492cf6584b4848e93f9c7585d4f62bad6b9a6d68 /quantum/split_common
parent550435c1c9766e143a054a3943dfcac1d92ac408 (diff)
downloadqmk_firmware-5dc91ddc60f0fd1f277345ccf20e17a8ab684cca.tar.gz
qmk_firmware-5dc91ddc60f0fd1f277345ccf20e17a8ab684cca.zip
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 <fauxpark@gmail.com> * Also remove NO_USB_STARTUP_CHECK from vitamins_included/rev1
Diffstat (limited to 'quantum/split_common')
-rw-r--r--quantum/split_common/split_util.c6
1 files changed, 6 insertions, 0 deletions
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;
}