@ -5,6 +5,7 @@
# include "bootloader.h"
# include "bootloader.h"
# include "debug.h"
# include "debug.h"
# include "keymap.h"
# include "keymap.h"
# include "host.h"
# include "action_layer.h"
# include "action_layer.h"
# include "eeconfig.h"
# include "eeconfig.h"
# include "bootmagic.h"
# include "bootmagic.h"
@ -76,8 +77,15 @@ void bootmagic(void)
if ( bootmagic_scan_keycode ( BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE ) ) {
if ( bootmagic_scan_keycode ( BOOTMAGIC_KEY_SWAP_BACKSLASH_BACKSPACE ) ) {
keymap_config . swap_backslash_backspace = ! keymap_config . swap_backslash_backspace ;
keymap_config . swap_backslash_backspace = ! keymap_config . swap_backslash_backspace ;
}
}
if ( bootmagic_scan_keycode ( BOOTMAGIC_HOST_NKRO ) ) {
keymap_config . nkro = ! keymap_config . nkro ;
}
eeconfig_write_keymap ( keymap_config . raw ) ;
eeconfig_write_keymap ( keymap_config . raw ) ;
# ifdef NKRO_ENABLE
keyboard_nkro = keymap_config . nkro ;
# endif
/* default layer */
/* default layer */
uint8_t default_layer = 0 ;
uint8_t default_layer = 0 ;
if ( bootmagic_scan_keycode ( BOOTMAGIC_KEY_DEFAULT_LAYER_0 ) ) { default_layer | = ( 1 < < 0 ) ; }
if ( bootmagic_scan_keycode ( BOOTMAGIC_KEY_DEFAULT_LAYER_0 ) ) { default_layer | = ( 1 < < 0 ) ; }