From 069cfb61b8a87480e084eab389da1866db69665c Mon Sep 17 00:00:00 2001 From: Lukas Reineke Date: Tue, 11 May 2021 07:40:18 +0900 Subject: [Keymap] Turn OLED off on suspend in soundmonster keymap (#10419) --- keyboards/crkbd/keymaps/soundmonster/keymap.c | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- cgit v1.2.3