fix build break. when RGB_MATRIX_ENABLE defined

pull/3582/head
mtei 6 years ago
parent e6b3cf0ab5
commit b50f924dd8

@ -32,6 +32,19 @@
#endif #endif
#ifdef RGBLIGHT_ENABLE #ifdef RGBLIGHT_ENABLE
#include "rgblight.h" #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 #endif
#ifdef SPLIT_KEYBOARD #ifdef SPLIT_KEYBOARD

Loading…
Cancel
Save