diff options
author | QMK Bot <hello@qmk.fm> | 2021-12-29 14:15:23 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-12-29 14:15:23 +0000 |
commit | c8af82432dc42be0a71cb3e5822fc3276994b1ca (patch) | |
tree | 9c1d288eda1d08a9d296c52ceb757668f8743fd1 /keyboards/planck/ez/ez.c | |
parent | f85b945c328ee5a26a8f6ae7a34930237cf69184 (diff) | |
parent | 906108fb486797ab2f3eb7c3a6f70e099c1199e6 (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/planck/ez/ez.c')
-rw-r--r-- | keyboards/planck/ez/ez.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c index 5c68726a01..98ec13085f 100644 --- a/keyboards/planck/ez/ez.c +++ b/keyboards/planck/ez/ez.c @@ -106,16 +106,6 @@ led_config_t g_led_config = { { 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 1 } }; -void suspend_power_down_kb(void) { - rgb_matrix_set_color_all(0, 0, 0); - rgb_matrix_set_suspend_state(true); - suspend_power_down_user(); -} - - void suspend_wakeup_init_kb(void) { - rgb_matrix_set_suspend_state(false); - suspend_wakeup_init_user(); -} #endif /* Left B9 Right B8 */ @@ -259,7 +249,7 @@ layer_state_t layer_state_set_kb(layer_state_t state) { planck_ez_left_led_off(); planck_ez_right_led_off(); state = layer_state_set_user(state); - uint8_t layer = biton32(state); + uint8_t layer = get_highest_layer(state); switch (layer) { case PLANCK_EZ_LED_LOWER: planck_ez_left_led_on(); |