projects
/
qmk_firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebfc39c
)
Enable RGB Matrix Sleep
author
Drashna Jaelre
<drashna@live.com>
Wed, 15 May 2019 06:26:41 +0000
(23:26 -0700)
committer
Drashna Jaelre
<drashna@live.com>
Fri, 17 May 2019 22:02:21 +0000
(15:02 -0700)
keyboards/crkbd/keymaps/drashna/keymap.c
patch
|
blob
|
history
diff --git
a/keyboards/crkbd/keymaps/drashna/keymap.c
b/keyboards/crkbd/keymaps/drashna/keymap.c
index a96420379fe6376e970f6dda041547c4de6c0dcf..af0bc0d9a74ad03dbe83b85e0d4f150c195d4938 100644
(file)
--- 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