summaryrefslogtreecommitdiff
path: root/keyboards/ergodox_ez/keymaps/default/keymap.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-11-06 09:15:30 -0500
committerJack Humbert <jack.humb@gmail.com>2017-11-06 09:15:30 -0500
commit1d3a19757c7b91230e4e7c54f7e41755fc4767a5 (patch)
treee7919e432ae06f8a874b2ba909c2b282c6e56e8d /keyboards/ergodox_ez/keymaps/default/keymap.c
parentcf9f6bbd917c56e7347993f9116953628b16bc6a (diff)
restore default mode/color if no 0 color
Diffstat (limited to 'keyboards/ergodox_ez/keymaps/default/keymap.c')
-rw-r--r--keyboards/ergodox_ez/keymaps/default/keymap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/keyboards/ergodox_ez/keymaps/default/keymap.c b/keyboards/ergodox_ez/keymaps/default/keymap.c
index ccb4ae3ada..e0f6e21b29 100644
--- a/keyboards/ergodox_ez/keymaps/default/keymap.c
+++ b/keyboards/ergodox_ez/keymaps/default/keymap.c
@@ -214,6 +214,8 @@ uint32_t layer_state_set_user(uint32_t state) {
case 0:
#ifdef RGBLIGHT_COLOR_LAYER_0
rgblight_setrgb(RGBLIGHT_COLOR_LAYER_0);
+ #else
+ rgblight_init();
#endif
break;
case 1: