@ -151,17 +151,17 @@ static void command_common_help(void)
" 0-9: Switch to Layer 0-9 \n "
" 0-9: Switch to Layer 0-9 \n "
# endif
# endif
STR ( MAGIC_KEY_LAYER0_ALT1 ) " : Switch to Layer 0 (alternate key 1) \n "
STR ( MAGIC_KEY_LAYER0_ALT ) " : Switch to Layer 0 (alternate) \n "
STR ( MAGIC_KEY_LAYER0_ALT2 ) " : Switch to Layer 0 (alternate key 2) \n "
STR ( MAGIC_KEY_BOOTLOADER ) " : Jump to Bootloader (Reset) \n "
STR ( MAGIC_KEY_BOOTLOADER ) " : Jump to Bootloader \n "
STR ( MAGIC_KEY_BOOTLOADER_ALT ) " : Jump to Bootloader (alternate) \n "
# ifdef KEYBOARD_LOCK_ENABLE
# ifdef KEYBOARD_LOCK_ENABLE
STR ( MAGIC_KEY_LOCK ) " : Lock \n "
STR ( MAGIC_KEY_LOCK ) " : Lock Keyboard \n "
# endif
# endif
# ifdef BOOTMAGIC_ENABLE
STR ( MAGIC_KEY_EEPROM ) " : Print EEPROM Settings \n "
STR ( MAGIC_KEY_EEPROM ) " : Print EEPROM Settings \n "
# endif
STR ( MAGIC_KEY_EEPROM_CLEAR ) " : Clear EEPROM \n "
# ifdef NKRO_ENABLE
# ifdef NKRO_ENABLE
STR ( MAGIC_KEY_NKRO ) " : NKRO Toggle \n "
STR ( MAGIC_KEY_NKRO ) " : NKRO Toggle \n "
@ -265,7 +265,6 @@ static void print_status(void)
return ;
return ;
}
}
# ifdef BOOTMAGIC_ENABLE
static void print_eeconfig ( void )
static void print_eeconfig ( void )
{
{
@ -305,7 +304,6 @@ static void print_eeconfig(void)
# endif /* !NO_PRINT */
# endif /* !NO_PRINT */
}
}
# endif /* BOOTMAGIC_ENABLE */
static bool command_common ( uint8_t code )
static bool command_common ( uint8_t code )
{
{
@ -326,14 +324,17 @@ static bool command_common(uint8_t code)
break ;
break ;
# endif
# endif
# ifdef BOOTMAGIC_ENABLE
// print stored eeprom config
// print stored eeprom config
case MAGIC_KC ( MAGIC_KEY_EEPROM ) :
case MAGIC_KC ( MAGIC_KEY_EEPROM ) :
print ( " eeconfig: \n " ) ;
print ( " eeconfig: \n " ) ;
print_eeconfig ( ) ;
print_eeconfig ( ) ;
break ;
break ;
# endif
// clear eeprom
case MAGIC_KC ( MAGIC_KEY_EEPROM_CLEAR ) :
print ( " Clearing EEPROM \n " ) ;
eeconfig_init ( ) ;
break ;
# ifdef KEYBOARD_LOCK_ENABLE
# ifdef KEYBOARD_LOCK_ENABLE
@ -352,8 +353,8 @@ static bool command_common(uint8_t code)
# endif
# endif
// print help
// print help
case MAGIC_KC ( MAGIC_KEY_HELP 1 ) :
case MAGIC_KC ( MAGIC_KEY_HELP ) :
case MAGIC_KC ( MAGIC_KEY_HELP 2 ) :
case MAGIC_KC ( MAGIC_KEY_HELP _ALT ) :
command_common_help ( ) ;
command_common_help ( ) ;
break ;
break ;
@ -370,6 +371,7 @@ static bool command_common(uint8_t code)
// jump to bootloader
// jump to bootloader
case MAGIC_KC ( MAGIC_KEY_BOOTLOADER ) :
case MAGIC_KC ( MAGIC_KEY_BOOTLOADER ) :
case MAGIC_KC ( MAGIC_KEY_BOOTLOADER_ALT ) :
clear_keyboard ( ) ; // clear to prevent stuck keys
clear_keyboard ( ) ; // clear to prevent stuck keys
print ( " \n \n Jumping to bootloader... " ) ;
print ( " \n \n Jumping to bootloader... " ) ;
# ifdef AUDIO_ENABLE
# ifdef AUDIO_ENABLE
@ -453,8 +455,7 @@ static bool command_common(uint8_t code)
// switch layers
// switch layers
case MAGIC_KC ( MAGIC_KEY_LAYER0_ALT1 ) :
case MAGIC_KC ( MAGIC_KEY_LAYER0_ALT ) :
case MAGIC_KC ( MAGIC_KEY_LAYER0_ALT2 ) :
switch_default_layer ( 0 ) ;
switch_default_layer ( 0 ) ;
break ;
break ;