diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-05-14 23:26:41 -0700 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-05-17 15:02:21 -0700 |
| commit | 356521864e9f49d50131f4779ff9e56dc8b12e8f (patch) | |
| tree | 65308256e5f76f64a1b2b0aa3878292cd0b622ac | |
| parent | ebfc39cc5083dd7c597f274883621b932ce6c33f (diff) | |
| download | qmk_firmware-356521864e9f49d50131f4779ff9e56dc8b12e8f.tar.gz qmk_firmware-356521864e9f49d50131f4779ff9e56dc8b12e8f.zip | |
Enable RGB Matrix Sleep
| -rw-r--r-- | keyboards/crkbd/keymaps/drashna/keymap.c | 8 |
1 files changed, 8 insertions, 0 deletions
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) { | |||
| 272 | 272 | ||
| 273 | #ifdef RGB_MATRIX_ENABLE | 273 | #ifdef RGB_MATRIX_ENABLE |
| 274 | 274 | ||
| 275 | void suspend_power_down_keymap(void) { | ||
| 276 | rgb_matrix_set_suspend_state(true); | ||
| 277 | } | ||
| 278 | |||
| 279 | void suspend_wakeup_init_keymap(void) { | ||
| 280 | rgb_matrix_set_suspend_state(false); | ||
| 281 | } | ||
| 282 | |||
| 275 | void rgb_matrix_indicators_user(void) { | 283 | void rgb_matrix_indicators_user(void) { |
| 276 | if ( userspace_config.rgb_layer_change && | 284 | if ( userspace_config.rgb_layer_change && |
| 277 | #ifdef RGB_DISABLE_WHEN_USB_SUSPENDED | 285 | #ifdef RGB_DISABLE_WHEN_USB_SUSPENDED |
