summaryrefslogtreecommitdiff
path: root/keyboards/jj40/jj40.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/jj40/jj40.c')
-rw-r--r--keyboards/jj40/jj40.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/keyboards/jj40/jj40.c b/keyboards/jj40/jj40.c
index 4affe199b..51f5295f4 100644
--- a/keyboards/jj40/jj40.c
+++ b/keyboards/jj40/jj40.c
@@ -28,8 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "backlight.h"
#include "backlight_custom.h"
-extern rgblight_config_t rgblight_config;
-
// for keyboard subdirectory level init functions
// @Override
void matrix_init_kb(void) {
@@ -52,6 +50,9 @@ void backlight_set(uint8_t level) {
}
#endif
+#ifdef RGBLIGHT_ENABLE
+extern rgblight_config_t rgblight_config;
+
// custom RGB driver
void rgblight_set(void) {
if (!rgblight_config.enable) {
@@ -77,7 +78,9 @@ void matrix_scan_kb(void) {
}
rgblight_task();
-
+#else
+void matrix_scan_kb(void) {
+#endif
matrix_scan_user();
/* Nothing else for now. */
}