From: Greizgh Date: Sat, 20 Jan 2018 15:41:36 +0000 (+0100) Subject: Fix compilation error when RGB light is disabled X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=35b44ac6999f4eb5e556d5931dafef9a47c0f2e6;p=qmk_firmware.git Fix compilation error when RGB light is disabled --- diff --git a/keyboards/ergodox_ez/keymaps/default/keymap.c b/keyboards/ergodox_ez/keymaps/default/keymap.c index 3c15b8a44..e400ffcd3 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();