diff --git a/users/brandonschlack/brandonschlack.c b/users/brandonschlack/brandonschlack.c index ccf06f6309f8..ce1e91b9067e 100644 --- a/users/brandonschlack/brandonschlack.c +++ b/users/brandonschlack/brandonschlack.c @@ -14,6 +14,14 @@ void eeconfig_init_user(void) { eeconfig_update_user(user_config.raw); } +__attribute__((weak)) void keyboard_pre_init_keymap(void) {} + +void keyboard_pre_init_user(void) { + // Read the user config from EEPROM + user_config.raw = eeconfig_read_user(); + keyboard_pre_init_keymap(); +} + __attribute__((weak)) void matrix_init_keymap(void){ } @@ -29,8 +37,6 @@ void keyboard_post_init_keymap(void){ } * calls RGB init if RGBs enabled */ void keyboard_post_init_user(void){ - // Read the user config from EEPROM - user_config.raw = eeconfig_read_user(); // Do RGB things if RGBs enabled #if defined(RGBLIGHT_ENABLE) || defined(RGB_MATRIX_ENABLE) keyboard_post_init_rgb(); diff --git a/users/brandonschlack/brandonschlack.h b/users/brandonschlack/brandonschlack.h index 6b862c77a896..23ba0dfe91d6 100644 --- a/users/brandonschlack/brandonschlack.h +++ b/users/brandonschlack/brandonschlack.h @@ -41,6 +41,7 @@ typedef union { } user_config_t; extern user_config_t user_config; +void keyboard_pre_init_keymap(void); void matrix_init_keymap(void); void keyboard_post_init_keymap(void); void shutdown_keymap(void);