summaryrefslogtreecommitdiff
path: root/layouts/community/ergodox
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2019-05-07 21:08:41 -0700
committerDrashna Jaelre <drashna@live.com>2019-05-17 15:02:17 -0700
commit42a6bd2fd4f797a5ef629621cd50ca4ac2a7f835 (patch)
tree659858f15b75b1e3d622ff0bf7dd9af3b0cbb874 /layouts/community/ergodox
parented6d5d5b7be2e41d184b484c70562651ed1f2f45 (diff)
Fix rgb matrix helper function
Diffstat (limited to 'layouts/community/ergodox')
-rw-r--r--layouts/community/ergodox/drashna/keymap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/community/ergodox/drashna/keymap.c b/layouts/community/ergodox/drashna/keymap.c
index 08689cf3de..fd867ede54 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) {
rgb_matrix_set_suspend_state(false);
}
-void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue, bool default_layer) {
+extern led_config_t g_led_config;
+void rgb_matrix_layer_helper (uint8_t red, uint8_t green, uint8_t blue) {
for (int i = 0; i < DRIVER_LED_TOTAL; i++) {
if (HAS_FLAGS(g_led_config.flags[i], LED_FLAG_MODIFIER)) {
rgb_matrix_set_color( i, red, green, blue );