From: Drashna Jaelre Date: Wed, 15 May 2019 06:26:41 +0000 (-0700) Subject: Enable RGB Matrix Sleep X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=356521864e9f49d50131f4779ff9e56dc8b12e8f;p=qmk_firmware.git Enable RGB Matrix Sleep --- diff --git a/keyboards/crkbd/keymaps/drashna/keymap.c b/keyboards/crkbd/keymaps/drashna/keymap.c index a96420379..af0bc0d9a 100644 --- a/keyboards/crkbd/keymaps/drashna/keymap.c +++ b/keyboards/crkbd/keymaps/drashna/keymap.c @@ -272,6 +272,14 @@ uint16_t get_tapping_term(uint16_t keycode) { #ifdef RGB_MATRIX_ENABLE +void suspend_power_down_keymap(void) { + rgb_matrix_set_suspend_state(true); +} + +void suspend_wakeup_init_keymap(void) { + rgb_matrix_set_suspend_state(false); +} + void rgb_matrix_indicators_user(void) { if ( userspace_config.rgb_layer_change && #ifdef RGB_DISABLE_WHEN_USB_SUSPENDED