diff options
author | Drashna Jael're <drashna@live.com> | 2022-01-21 20:11:30 -0800 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2022-01-21 20:11:30 -0800 |
commit | 102cec82418b785c6f503f90dacc452843323c86 (patch) | |
tree | 5085627003a13d2cb2136d7da28b8d08ecbe87fd /users/drashna/callbacks.c | |
parent | ad702096a97677eab5c1931d6f0d4a51e1a564a5 (diff) | |
parent | 7ecb47958c7e13ffb87e9ee25ee639daeb78b36d (diff) |
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'users/drashna/callbacks.c')
-rw-r--r-- | users/drashna/callbacks.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/users/drashna/callbacks.c b/users/drashna/callbacks.c index 48b076b6ba..ffc777692e 100644 --- a/users/drashna/callbacks.c +++ b/users/drashna/callbacks.c @@ -70,6 +70,15 @@ void shutdown_user(void) { __attribute__((weak)) void suspend_power_down_keymap(void) {} void suspend_power_down_user(void) { + if (layer_state_is(_GAMEPAD)) { + layer_off(_GAMEPAD); + } + if (layer_state_is(_DIABLO)) { + layer_off(_DIABLO); + } + if (layer_state_is(_DIABLOII)) { + layer_off(_DIABLOII); + } #ifdef OLED_ENABLE oled_off(); #endif @@ -78,12 +87,6 @@ void suspend_power_down_user(void) { __attribute__((weak)) void suspend_wakeup_init_keymap(void) {} void suspend_wakeup_init_user(void) { - if (layer_state_is(_GAMEPAD)) { - layer_off(_GAMEPAD); - } - if (layer_state_is(_DIABLO)) { - layer_off(_DIABLO); - } suspend_wakeup_init_keymap(); } |