From b50f924dd8998f1c15db7050ebe7db6219e5ca86 Mon Sep 17 00:00:00 2001 From: mtei <2170248+mtei@users.noreply.github.com> Date: Tue, 7 Aug 2018 05:05:26 +0900 Subject: [PATCH] fix build break. when RGB_MATRIX_ENABLE defined --- quantum/quantum.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/quantum/quantum.h b/quantum/quantum.h index 855a51c1b8..cf33cf8e3a 100644 --- a/quantum/quantum.h +++ b/quantum/quantum.h @@ -32,6 +32,19 @@ #endif #ifdef RGBLIGHT_ENABLE #include "rgblight.h" +#else + #ifdef RGB_MATRIX_ENABLE + /* dummy define RGBLIGHT_MODE_xxxx */ + #define RGBLIGHT_H + #define _RGBM_SINGLE(sym) RGBLIGHT_MODE_ ## sym, + #define _RGBM_MULTI(sym) RGBLIGHT_MODE_ ## sym, + #define _RGBM_TMP(sym) RGBLIGHT_MODE_ ## sym, + enum RGBLIGHT_EFFECT_MODE { + RGBLIGHT_MODE_zero = 0, + #include "rgblight.h" + RGBLIGHT_MODE_end + }; + #endif #endif #ifdef SPLIT_KEYBOARD