diff options
Diffstat (limited to 'keyboards/planck/ez')
-rw-r--r-- | keyboards/planck/ez/ez.c | 11 | ||||
-rw-r--r-- | keyboards/planck/ez/ez.h | 2 |
2 files changed, 1 insertions, 12 deletions
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c index 2e74ff860a..5294be9ec0 100644 --- a/keyboards/planck/ez/ez.c +++ b/keyboards/planck/ez/ez.c @@ -208,20 +208,12 @@ void keyboard_pre_init_kb(void) { } // read kb settings from eeprom keyboard_config.raw = eeconfig_read_kb(); -#ifdef RGB_MATRIX_ENABLE - if (keyboard_config.rgb_matrix_enable) { - rgb_matrix_set_flags(LED_FLAG_ALL); - } else { - rgb_matrix_set_flags(LED_FLAG_NONE); - } -#endif led_initialize_hardware(); keyboard_pre_init_user(); } void eeconfig_init_kb(void) { // EEPROM is getting reset! keyboard_config.raw = 0; - keyboard_config.rgb_matrix_enable = true; keyboard_config.led_level = 4; eeconfig_update_kb(keyboard_config.raw); eeconfig_init_user(); @@ -277,17 +269,14 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { switch (rgb_matrix_get_flags()) { case LED_FLAG_ALL: { rgb_matrix_set_flags(LED_FLAG_NONE); - keyboard_config.rgb_matrix_enable = false; rgb_matrix_set_color_all(0, 0, 0); } break; default: { rgb_matrix_set_flags(LED_FLAG_ALL); - keyboard_config.rgb_matrix_enable = true; } break; } - eeconfig_update_kb(keyboard_config.raw); } return false; #endif diff --git a/keyboards/planck/ez/ez.h b/keyboards/planck/ez/ez.h index 9e572d258d..7243477cbf 100644 --- a/keyboards/planck/ez/ez.h +++ b/keyboards/planck/ez/ez.h @@ -78,7 +78,7 @@ typedef union { struct { uint8_t led_level :3; bool disable_layer_led :1; - bool rgb_matrix_enable :1; + bool placeholder :1; }; } keyboard_config_t; |