diff options
Diffstat (limited to 'common/command.c')
| -rw-r--r-- | common/command.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/command.c b/common/command.c index d7ba3f232..372ca291e 100644 --- a/common/command.c +++ b/common/command.c | |||
| @@ -123,6 +123,7 @@ static void command_common_help(void) | |||
| 123 | print("Paus: jump to bootloader\n"); | 123 | print("Paus: jump to bootloader\n"); |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | #ifdef BOOTMAGIC_ENABLE | ||
| 126 | static void print_eeprom_config(void) | 127 | static void print_eeprom_config(void) |
| 127 | { | 128 | { |
| 128 | uint8_t eebyte; | 129 | uint8_t eebyte; |
| @@ -145,15 +146,18 @@ static void print_eeprom_config(void) | |||
| 145 | print("keyconf.swap_grave_esc: "); print_hex8(kc.swap_grave_esc); print("\n"); | 146 | print("keyconf.swap_grave_esc: "); print_hex8(kc.swap_grave_esc); print("\n"); |
| 146 | print("keyconf.swap_backslash_backspace: "); print_hex8(kc.swap_backslash_backspace); print("\n"); | 147 | print("keyconf.swap_backslash_backspace: "); print_hex8(kc.swap_backslash_backspace); print("\n"); |
| 147 | } | 148 | } |
| 149 | #endif | ||
| 148 | 150 | ||
| 149 | static bool command_common(uint8_t code) | 151 | static bool command_common(uint8_t code) |
| 150 | { | 152 | { |
| 151 | static host_driver_t *host_driver = 0; | 153 | static host_driver_t *host_driver = 0; |
| 152 | switch (code) { | 154 | switch (code) { |
| 155 | #ifdef BOOTMAGIC_ENABLE | ||
| 153 | case KC_E: | 156 | case KC_E: |
| 154 | print("eeprom config\n"); | 157 | print("eeprom config\n"); |
| 155 | print_eeprom_config(); | 158 | print_eeprom_config(); |
| 156 | break; | 159 | break; |
| 160 | #endif | ||
| 157 | case KC_CAPSLOCK: | 161 | case KC_CAPSLOCK: |
| 158 | if (host_get_driver()) { | 162 | if (host_get_driver()) { |
| 159 | host_driver = host_get_driver(); | 163 | host_driver = host_get_driver(); |
