summaryrefslogtreecommitdiff
path: root/keyboards/jj40/jj40.c
diff options
context:
space:
mode:
authorOscillope2018-03-08 21:31:08 -0500
committerJack Humbert2018-03-08 21:31:08 -0500
commit7d9dc61504d1251f8d0bd8ab58fb6a47234b52ef (patch)
tree481ef9525a44a7c9924230e269c478849df15e1e /keyboards/jj40/jj40.c
parent566399794a6e2c19f11d9978a723595226e10560 (diff)
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.
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. */
}