From d4722ea537111516d0bd3bd9ccf19f7c12b07f51 Mon Sep 17 00:00:00 2001
From: mtei <2170248+mtei@users.noreply.github.com>
Date: Wed, 13 Mar 2019 15:26:26 +0900
Subject: [PATCH] fix RGBLIGHT_SPLIT_ANIMATION check position
---
quantum/rgblight.c | 5 -----
quantum/rgblight.h | 6 ++++++
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index ad076cd42b..783b1940d6 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -13,11 +13,6 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-#ifdef RGBLIGHT_SPLIT_ANIMATION
- #ifndef RGBLIGHT_SPLIT
- #define RGBLIGHT_SPLIT
- #endif
-#endif
#include
#include
#ifdef __AVR__
diff --git a/quantum/rgblight.h b/quantum/rgblight.h
index aeff2cb1d7..5c8b987df5 100644
--- a/quantum/rgblight.h
+++ b/quantum/rgblight.h
@@ -16,6 +16,12 @@
#ifndef RGBLIGHT_H
#define RGBLIGHT_H
+#ifdef RGBLIGHT_SPLIT_ANIMATION
+ #ifndef RGBLIGHT_SPLIT
+ #define RGBLIGHT_SPLIT
+ #endif
+#endif
+
#include "rgblight_reconfig.h"
/***** rgblight_mode(mode)/rgblight_mode_noeeprom(mode) ****