]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Update splittest/teensy_2 to use SPLIT_USB_DETECT (#7028)
authorJoel Challis <git@zvecr.com>
Sun, 13 Oct 2019 23:05:41 +0000 (00:05 +0100)
committerGitHub <noreply@github.com>
Sun, 13 Oct 2019 23:05:41 +0000 (00:05 +0100)
keyboards/handwired/splittest/teensy_2/config.h
keyboards/handwired/splittest/teensy_2/teensy_2.c [deleted file]

index 3d0b0346edf06f4617ef2fcf0bd4173798d0d815..2b5bcf8e9272cf32a699c11a71674b1e65196ba1 100644 (file)
@@ -27,5 +27,7 @@
 /* ws2812 RGB LED */
 #define RGB_DI_PIN D3
 
+// 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/handwired/splittest/teensy_2/teensy_2.c b/keyboards/handwired/splittest/teensy_2/teensy_2.c
deleted file mode 100644 (file)
index bcc2a43..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#include QMK_KEYBOARD_H
-
-bool is_keyboard_master(void) {
-    // TODO: replace this override once USB host detection is implemented
-    // SPLIT_HAND_PIN Combined with MASTER_LEFT or MASTER_RIGHT, gives a crude
-    // way to force teensy to run as slave/master
-    setPinInput(SPLIT_HAND_PIN);
-
-#if defined(MASTER_RIGHT)
-    return !readPin(SPLIT_HAND_PIN);
-#else
-    return readPin(SPLIT_HAND_PIN);
-#endif
-}