diff options
Diffstat (limited to 'common/keyboard.c')
| -rw-r--r-- | common/keyboard.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/common/keyboard.c b/common/keyboard.c index 0a0bacd43..1acb79861 100644 --- a/common/keyboard.c +++ b/common/keyboard.c | |||
| @@ -66,13 +66,14 @@ void keyboard_init(void) | |||
| 66 | 66 | ||
| 67 | bootmagic(); | 67 | bootmagic(); |
| 68 | 68 | ||
| 69 | if (eeconfig_initialized()) { | 69 | if (eeconfig_is_enabled()) { |
| 70 | uint8_t config; | 70 | uint8_t config; |
| 71 | config = eeconfig_read_debug(); | 71 | config = eeconfig_read_debug(); |
| 72 | debug_enable = (config & EECONFIG_DEBUG_ENABLE); | 72 | // ignored if debug is enabled by program before. |
| 73 | debug_matrix = (config & EECONFIG_DEBUG_MATRIX); | 73 | if (!debug_enable) debug_enable = (config & EECONFIG_DEBUG_ENABLE); |
| 74 | debug_keyboard = (config & EECONFIG_DEBUG_KEYBOARD); | 74 | if (!debug_matrix) debug_matrix = (config & EECONFIG_DEBUG_MATRIX); |
| 75 | debug_mouse = (config & EECONFIG_DEBUG_MOUSE); | 75 | if (!debug_keyboard) debug_keyboard = (config & EECONFIG_DEBUG_KEYBOARD); |
| 76 | if (!debug_mouse) debug_mouse = (config & EECONFIG_DEBUG_MOUSE); | ||
| 76 | } else { | 77 | } else { |
| 77 | eeconfig_init(); | 78 | eeconfig_init(); |
| 78 | } | 79 | } |
