Browse Source

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
pull/7041/head 0.7.42
Joel Challis 4 years ago
committed by GitHub
parent
commit
5dc91ddc60
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions
  1. +0
    -2
      keyboards/handwired/splittest/teensy_2/config.h
  2. +0
    -1
      keyboards/vitamins_included/rev1/config.h
  3. +6
    -0
      quantum/split_common/split_util.c

+ 0
- 2
keyboards/handwired/splittest/teensy_2/config.h View File

@ -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

+ 0
- 1
keyboards/vitamins_included/rev1/config.h View File

@ -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


+ 6
- 0
quantum/split_common/split_util.c View File

@ -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;
}


Loading…
Cancel
Save