summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/keyboard.c')
-rw-r--r--tmk_core/common/keyboard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tmk_core/common/keyboard.c b/tmk_core/common/keyboard.c
index bd543c45e1..34e1ceeca5 100644
--- a/tmk_core/common/keyboard.c
+++ b/tmk_core/common/keyboard.c
@@ -46,6 +46,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifdef ADB_MOUSE_ENABLE
# include "adb.h"
#endif
+#ifdef RGBLIGHT_ENABLE
+# include "rgblight.h"
+#endif
#ifdef MATRIX_HAS_GHOST
static bool is_row_ghosting(uint8_t row){
@@ -89,6 +92,9 @@ void keyboard_init(void) {
#ifdef BACKLIGHT_ENABLE
backlight_init();
#endif
+#ifdef RGBLIGHT_ENABLE
+ rgblight_init();
+#endif
#if defined(NKRO_ENABLE) && defined(FORCE_NKRO)
keyboard_nkro = true;
#endif