check for BACKLIGHT_ENABLE so this works on all keyboards
This commit is contained in:
parent
c9b3619299
commit
361a2cf8a5
1 changed files with 2 additions and 0 deletions
|
@ -240,6 +240,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
layer_state_t layer_state_set_user(layer_state_t state) {
|
layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
// LED control, lighting up when Fn layer is activated
|
// LED control, lighting up when Fn layer is activated
|
||||||
state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
state = update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
|
||||||
|
# ifdef BACKLIGHT_ENABLE
|
||||||
switch (get_highest_layer(state)) {
|
switch (get_highest_layer(state)) {
|
||||||
case _QWERTY:
|
case _QWERTY:
|
||||||
backlight_set(0);
|
backlight_set(0);
|
||||||
|
@ -251,6 +252,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||||
backlight_set(3);
|
backlight_set(3);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue