summaryrefslogtreecommitdiff
path: root/keyboards/crkbd/keymaps/soundmonster
diff options
context:
space:
mode:
authorLukas Reineke <lukas.reineke@protonmail.com>2021-05-11 07:40:18 +0900
committerGitHub <noreply@github.com>2021-05-10 15:40:18 -0700
commit069cfb61b8a87480e084eab389da1866db69665c (patch)
tree33ba285a90b9af399291b7877031bef2e8ff5b61 /keyboards/crkbd/keymaps/soundmonster
parent6bb9113e27c649eeb9dc5b200bfc45eb51952861 (diff)
[Keymap] Turn OLED off on suspend in soundmonster keymap (#10419)
Diffstat (limited to 'keyboards/crkbd/keymaps/soundmonster')
-rw-r--r--keyboards/crkbd/keymaps/soundmonster/keymap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/crkbd/keymaps/soundmonster/keymap.c b/keyboards/crkbd/keymaps/soundmonster/keymap.c
index 28b3e19d13..74d5e541c0 100644
--- a/keyboards/crkbd/keymaps/soundmonster/keymap.c
+++ b/keyboards/crkbd/keymaps/soundmonster/keymap.c
@@ -298,6 +298,10 @@ void render_status_secondary(void) {
render_mod_status_ctrl_shift(get_mods()|get_oneshot_mods());
}
+void suspend_power_down_user() {
+ oled_off();
+}
+
void oled_task_user(void) {
if (timer_elapsed32(oled_timer) > 30000) {
oled_off();