diff options
author | Joel Challis <git@zvecr.com> | 2020-03-21 23:10:39 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 23:10:39 +0000 |
commit | 789e19945038c3b98d6e80bc29166d493a8b1056 (patch) | |
tree | d3d5159d9390365a2374d72cf61bd9c7ecd37ae0 /quantum/quantum.c | |
parent | a747c1c3dee728f5124a8effb8f52819f643de5f (diff) | |
download | qmk_firmware-789e19945038c3b98d6e80bc29166d493a8b1056.tar.gz |
Add support for Bootmagic lite when using SPLIT_HAND_PIN (#8347)
* Add support for Bootmagic lite when using SPLIT_HAND_PIN
* Deduplicate bootmagic_lite logic from within via
* Revert location of defaults so that user overrides still work for now
* Tidy up code slightly
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r-- | quantum/quantum.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index e06448d9e..749a08eea 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -581,32 +581,6 @@ void tap_random_base64(void) { } } -__attribute__((weak)) void bootmagic_lite(void) { - // The lite version of TMK's bootmagic based on Wilba. - // 100% less potential for accidentally making the - // keyboard do stupid things. - - // We need multiple scans because debouncing can't be turned off. - matrix_scan(); -#if defined(DEBOUNCE) && DEBOUNCE > 0 - wait_ms(DEBOUNCE * 2); -#else - wait_ms(30); -#endif - matrix_scan(); - - // If the Esc and space bar are held down on power up, - // reset the EEPROM valid state and jump to bootloader. - // Assumes Esc is at [0,0]. - // This isn't very generalized, but we need something that doesn't - // rely on user's keymaps in firmware or EEPROM. - if (matrix_get_row(BOOTMAGIC_LITE_ROW) & (1 << BOOTMAGIC_LITE_COLUMN)) { - eeconfig_disable(); - // Jump to bootloader. - bootloader_jump(); - } -} - void matrix_init_quantum() { #ifdef BOOTMAGIC_LITE bootmagic_lite(); |