From 7d9dc61504d1251f8d0bd8ab58fb6a47234b52ef Mon Sep 17 00:00:00 2001 From: Oscillope Date: Thu, 8 Mar 2018 21:31:08 -0500 Subject: Fixes for JJ40 and Oscillope keymap (#2496) * Add navigation layer for hjkl arrow keys * Fix Oscillope keymap after jj40.h changes. Also fix jj40.c so that it can build without rgblight if you don't want that enabled. --- keyboards/jj40/jj40.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'keyboards/jj40/jj40.c') 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 . #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. */ } -- cgit v1.2.3