diff options
Diffstat (limited to 'common/bootmagic.c')
| -rw-r--r-- | common/bootmagic.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/bootmagic.c b/common/bootmagic.c index 036d49044..642d5face 100644 --- a/common/bootmagic.c +++ b/common/bootmagic.c | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include "bootloader.h" | 5 | #include "bootloader.h" |
| 6 | #include "debug.h" | 6 | #include "debug.h" |
| 7 | #include "keymap.h" | 7 | #include "keymap.h" |
| 8 | #include "host.h" | ||
| 8 | #include "action_layer.h" | 9 | #include "action_layer.h" |
| 9 | #include "eeconfig.h" | 10 | #include "eeconfig.h" |
| 10 | #include "bootmagic.h" | 11 | #include "bootmagic.h" |
| @@ -76,8 +77,15 @@ void bootmagic(void) | |||
| 76 | if (bootmagic_scan_keycode(BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE)) { | 77 | if (bootmagic_scan_keycode(BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE)) { |
| 77 | keymap_config.swap_backslash_backspace = !keymap_config.swap_backslash_backspace; | 78 | keymap_config.swap_backslash_backspace = !keymap_config.swap_backslash_backspace; |
| 78 | } | 79 | } |
| 80 | if (bootmagic_scan_keycode(BOOTMAGIC_HOST_NKRO)) { | ||
| 81 | keymap_config.nkro = !keymap_config.nkro; | ||
| 82 | } | ||
| 79 | eeconfig_write_keymap(keymap_config.raw); | 83 | eeconfig_write_keymap(keymap_config.raw); |
| 80 | 84 | ||
| 85 | #ifdef NKRO_ENABLE | ||
| 86 | keyboard_nkro = keymap_config.nkro; | ||
| 87 | #endif | ||
| 88 | |||
| 81 | /* default layer */ | 89 | /* default layer */ |
| 82 | uint8_t default_layer = 0; | 90 | uint8_t default_layer = 0; |
| 83 | if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_0)) { default_layer |= (1<<0); } | 91 | if (bootmagic_scan_keycode(BOOTMAGIC_KEY_DEFAULT_LAYER_0)) { default_layer |= (1<<0); } |
