瀏覽代碼

Fix compilation error when RGB light is disabled

Greizgh 7 年之前
父節點
當前提交
35b44ac699
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      keyboards/ergodox_ez/keymaps/default/keymap.c

+ 2 - 0
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();