diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-05-07 21:08:41 -0700 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-05-17 15:02:17 -0700 |
| commit | 42a6bd2fd4f797a5ef629621cd50ca4ac2a7f835 (patch) | |
| tree | 659858f15b75b1e3d622ff0bf7dd9af3b0cbb874 /layouts/community/ergodox/drashna/keymap.c | |
| parent | ed6d5d5b7be2e41d184b484c70562651ed1f2f45 (diff) | |
| download | qmk_firmware-42a6bd2fd4f797a5ef629621cd50ca4ac2a7f835.tar.gz qmk_firmware-42a6bd2fd4f797a5ef629621cd50ca4ac2a7f835.zip | |
Fix rgb matrix helper function
Diffstat (limited to 'layouts/community/ergodox/drashna/keymap.c')
| -rw-r--r-- | layouts/community/ergodox/drashna/keymap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/community/ergodox/drashna/keymap.c b/layouts/community/ergodox/drashna/keymap.c index 08689cf3d..fd867ede5 100644 --- a/layouts/community/ergodox/drashna/keymap.c +++ b/layouts/community/ergodox/drashna/keymap.c | |||
| @@ -399,7 +399,8 @@ void suspend_wakeup_init_keymap(void) { | |||
| 399 | rgb_matrix_set_suspend_state(false); | 399 | rgb_matrix_set_suspend_state(false); |
| 400 | } | 400 | } |
| 401 | 401 | ||
| 402 | void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, bool default_layer) { | 402 | extern led_config_t g_led_config; |
| 403 | void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) { | ||
| 403 | for (int i = 0; i < DRIVER_LED_TOTAL; i++) { | 404 | for (int i = 0; i < DRIVER_LED_TOTAL; i++) { |
| 404 | if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { | 405 | if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) { |
| 405 | rgb_matrix_set_color( i, red, green, blue ); | 406 | rgb_matrix_set_color( i, red, green, blue ); |
