diff options
| author | Zach White <skullydazed@gmail.com> | 2021-01-16 18:41:47 -0800 |
|---|---|---|
| committer | Zach White <skullydazed@drpepper.org> | 2021-01-30 13:11:33 -0800 |
| commit | 361a2cf8a558d4de28f8264beef3594bc517e823 (patch) | |
| tree | 5aad8071798403c1de3b554fc9b65a1f4d891651 /layouts | |
| parent | c9b3619299aaf335e8acde834d687f112b11e8b6 (diff) | |
| download | qmk_firmware-361a2cf8a558d4de28f8264beef3594bc517e823.tar.gz qmk_firmware-361a2cf8a558d4de28f8264beef3594bc517e823.zip | |
check for BACKLIGHT_ENABLE so this works on all keyboards
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/community/ortho_4x12/juno/keymap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/community/ortho_4x12/juno/keymap.c b/layouts/community/ortho_4x12/juno/keymap.c index a22c229e2..2b16b9955 100644 --- a/layouts/community/ortho_4x12/juno/keymap.c +++ b/layouts/community/ortho_4x12/juno/keymap.c | |||
| @@ -240,6 +240,7 @@ layer_state_t layer_state_set_user(layer_state_t state) { | |||
| 240 | layer_state_t layer_state_set_user(layer_state_t state) { | 240 | layer_state_t layer_state_set_user(layer_state_t state) { |
| 241 | // LED control, lighting up when Fn layer is activated | 241 | // LED control, lighting up when Fn layer is activated |
| 242 | state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); | 242 | state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST); |
| 243 | # ifdef BACKLIGHT_ENABLE | ||
| 243 | switch (get_highest_layer(state)) { | 244 | switch (get_highest_layer(state)) { |
| 244 | case _QWERTY: | 245 | case _QWERTY: |
| 245 | backlight_set(0); | 246 | backlight_set(0); |
| @@ -251,6 +252,7 @@ layer_state_t layer_state_set_user(layer_state_t state) { | |||
| 251 | backlight_set(3); | 252 | backlight_set(3); |
| 252 | break; | 253 | break; |
| 253 | } | 254 | } |
| 255 | # endif | ||
| 254 | return state; | 256 | return state; |
| 255 | } | 257 | } |
| 256 | 258 | ||
