summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/splittest/teensy_2/config.h2
-rw-r--r--keyboards/vitamins_included/rev1/config.h1
-rw-r--r--quantum/split_common/split_util.c6
3 files changed, 6 insertions, 3 deletions
diff --git a/keyboards/handwired/splittest/teensy_2/config.h b/keyboards/handwired/splittest/teensy_2/config.h
index 2b5bcf8e92..7c092db307 100644
--- a/keyboards/handwired/splittest/teensy_2/config.h
+++ b/keyboards/handwired/splittest/teensy_2/config.h
@@ -29,5 +29,3 @@
// teensy has vbus detection issues - use usb detection instead
#define SPLIT_USB_DETECT
-// required for teensy slave otherwise it "locks up" during startup
-#define NO_USB_STARTUP_CHECK
diff --git a/keyboards/vitamins_included/rev1/config.h b/keyboards/vitamins_included/rev1/config.h
index a6f9c95fba..c4881db01b 100644
--- a/keyboards/vitamins_included/rev1/config.h
+++ b/keyboards/vitamins_included/rev1/config.h
@@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "config_common.h"
#define SPLIT_USB_DETECT
-#define NO_USB_STARTUP_CHECK
#define EE_HANDS
#define SOFT_SERIAL_PIN D0
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;
}