diff options
| author | Joel Challis <git@zvecr.com> | 2019-10-17 23:37:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-17 23:37:37 +0100 |
| commit | 5dc91ddc60f0fd1f277345ccf20e17a8ab684cca (patch) | |
| tree | 492cf6584b4848e93f9c7585d4f62bad6b9a6d68 | |
| parent | 550435c1c9766e143a054a3943dfcac1d92ac408 (diff) | |
| download | qmk_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
| -rw-r--r-- | keyboards/handwired/splittest/teensy_2/config.h | 2 | ||||
| -rw-r--r-- | keyboards/vitamins_included/rev1/config.h | 1 | ||||
| -rw-r--r-- | quantum/split_common/split_util.c | 6 |
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 2b5bcf8e9..7c092db30 100644 --- a/keyboards/handwired/splittest/teensy_2/config.h +++ b/keyboards/handwired/splittest/teensy_2/config.h | |||
| @@ -29,5 +29,3 @@ | |||
| 29 | 29 | ||
| 30 | // teensy has vbus detection issues - use usb detection instead | 30 | // teensy has vbus detection issues - use usb detection instead |
| 31 | #define SPLIT_USB_DETECT | 31 | #define SPLIT_USB_DETECT |
| 32 | // required for teensy slave otherwise it "locks up" during startup | ||
| 33 | #define NO_USB_STARTUP_CHECK | ||
diff --git a/keyboards/vitamins_included/rev1/config.h b/keyboards/vitamins_included/rev1/config.h index a6f9c95fb..c4881db01 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/>. | |||
| 21 | #include "config_common.h" | 21 | #include "config_common.h" |
| 22 | 22 | ||
| 23 | #define SPLIT_USB_DETECT | 23 | #define SPLIT_USB_DETECT |
| 24 | #define NO_USB_STARTUP_CHECK | ||
| 25 | 24 | ||
| 26 | #define EE_HANDS | 25 | #define EE_HANDS |
| 27 | #define SOFT_SERIAL_PIN D0 | 26 | #define SOFT_SERIAL_PIN D0 |
diff --git a/quantum/split_common/split_util.c b/quantum/split_common/split_util.c index 8983861bc..5c548de05 100644 --- a/quantum/split_common/split_util.c +++ b/quantum/split_common/split_util.c | |||
| @@ -32,6 +32,12 @@ bool waitForUsb(void) { | |||
| 32 | } | 32 | } |
| 33 | wait_ms(100); | 33 | wait_ms(100); |
| 34 | } | 34 | } |
| 35 | |||
| 36 | #if defined(__AVR__) | ||
| 37 | // Avoid NO_USB_STARTUP_CHECK - Disable USB as the previous checks seem to enable it somehow | ||
| 38 | (USBCON &= ~(_BV(USBE) | _BV(OTGPADE))); | ||
| 39 | #endif | ||
| 40 | |||
| 35 | return false; | 41 | return false; |
| 36 | } | 42 | } |
| 37 | 43 | ||
