aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/keebio/bdn9/keymaps/bcat/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/keebio/bdn9/keymaps/bcat/keymap.c')
-rw-r--r--keyboards/keebio/bdn9/keymaps/bcat/keymap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/keebio/bdn9/keymaps/bcat/keymap.c b/keyboards/keebio/bdn9/keymaps/bcat/keymap.c
index 05d324034..41246ba7d 100644
--- a/keyboards/keebio/bdn9/keymaps/bcat/keymap.c
+++ b/keyboards/keebio/bdn9/keymaps/bcat/keymap.c
@@ -31,9 +31,13 @@ void encoder_update_user(uint8_t index, bool clockwise) {
/* Top-right encoder (backlight brightness) */
case 1:
if (clockwise) {
+#ifdef BACKLIGHT_ENABLE
backlight_increase();
+#endif
} else {
+#ifdef BACKLIGHT_ENABLE
backlight_decrease();
+#endif
}
break;
}