X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=common%2Fkeyboard.c;h=6bc6fae6e25f55bf5e2b2bedb9b2c079b3a9f132;hb=3f48b13f81f276dc8d0bd96607b70d13f9b5e883;hp=42c57ac96fad956d8ed323afb2f10443538ab14e;hpb=92b92dd78f5488981244d353f2d500ad9d82fc49;p=max%2Ftmk_keyboard.git diff --git a/common/keyboard.c b/common/keyboard.c index 42c57ac9..6bc6fae6 100644 --- a/common/keyboard.c +++ b/common/keyboard.c @@ -54,7 +54,7 @@ static bool has_ghost_in_row(uint8_t row) void keyboard_init(void) { // TODO: configuration of sendchar impl - print_sendchar_func = sendchar; + print_set_sendchar(sendchar); timer_init(); matrix_init(); @@ -64,18 +64,6 @@ void keyboard_init(void) #ifdef BOOTMAGIC_ENABLE bootmagic(); - - if (eeconfig_is_enabled()) { - uint8_t config; - config = eeconfig_read_debug(); - // ignored if debug is enabled by program before. - if (!debug_enable) debug_enable = (config & EECONFIG_DEBUG_ENABLE); - if (!debug_matrix) debug_matrix = (config & EECONFIG_DEBUG_MATRIX); - if (!debug_keyboard) debug_keyboard = (config & EECONFIG_DEBUG_KEYBOARD); - if (!debug_mouse) debug_mouse = (config & EECONFIG_DEBUG_MOUSE); - } else { - eeconfig_init(); - } #endif }