summaryrefslogtreecommitdiff
path: root/keyboards/ergodox_ez/keymaps
diff options
context:
space:
mode:
authorGreizgh <greizgh@ephax.org>2018-01-20 16:41:36 +0100
committerJack Humbert <jack.humb@gmail.com>2018-01-25 01:03:10 -0500
commit35b44ac6999f4eb5e556d5931dafef9a47c0f2e6 (patch)
treeaee97025a81c40546165861b3d6c2342c56e7a01 /keyboards/ergodox_ez/keymaps
parent61d851af6594be3b52c316be29115e282dc2a4f2 (diff)
Fix compilation error when RGB light is disabled
Diffstat (limited to 'keyboards/ergodox_ez/keymaps')
-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 3c15b8a44c..e400ffcd37 100644
--- a/keyboards/ergodox_ez/keymaps/default/keymap.c
+++ b/keyboards/ergodox_ez/keymaps/default/keymap.c
@@ -217,8 +217,10 @@ uint32_t layer_state_set_user(uint32_t state) {
#ifdef RGBLIGHT_COLOR_LAYER_0
rgblight_setrgb(RGBLIGHT_COLOR_LAYER_0);
#else
+ #ifdef RGBLIGHT_ENABLE
rgblight_init();
#endif
+ #endif
break;
case 1:
ergodox_right_led_1_on();