summaryrefslogtreecommitdiff
path: root/keyboards/lfkeyboards/lighting.c
diff options
context:
space:
mode:
authorscott-t-wilson <scott.t.wilson@gmail.com>2018-02-23 13:16:10 -0500
committerJack Humbert <jack.humb@gmail.com>2018-02-23 13:16:10 -0500
commit3f3d0551cd5f2ca0b72fc4b24d1d7955ffa8cb78 (patch)
tree0abed9c5a39693745060f75606f67771051f041c /keyboards/lfkeyboards/lighting.c
parentf7461748744c1e3a5bae3b7a54d5b0d8439606e6 (diff)
Lfkeyboards updates (#2421)
* Update smk65 fn layer, add iso * Added Fn layer to ISO keymap * Fix error when backlight is disabled but lighting isn't * Remove broke mini1800 iso map * Add keymaps * Add LFKPad * Add split delete to lfk78 * Typo * Custom keymap
Diffstat (limited to 'keyboards/lfkeyboards/lighting.c')
-rw-r--r--keyboards/lfkeyboards/lighting.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/lfkeyboards/lighting.c b/keyboards/lfkeyboards/lighting.c
index 42d247ae70..2a6eac929b 100644
--- a/keyboards/lfkeyboards/lighting.c
+++ b/keyboards/lfkeyboards/lighting.c
@@ -16,7 +16,9 @@
extern rgblight_config_t rgblight_config; // Declared in rgblight.c
-const uint8_t backlight_pwm_map[BACKLIGHT_LEVELS] = BACKLIGHT_PWM_MAP;
+#ifdef BACKLIGHT_ENABLE
+ const uint8_t backlight_pwm_map[BACKLIGHT_LEVELS] = BACKLIGHT_PWM_MAP;
+#endif
// RGB# to ISSI matrix, this is the same across all revisions
const uint8_t rgb_leds[][3][2] = {