aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards
diff options
context:
space:
mode:
authorGravatar Jack Humbert <jack.humb@gmail.com>2018-06-28 08:31:21 -0400
committerGravatar Jack Humbert <jack.humb@gmail.com>2018-06-28 08:39:34 -0400
commit7acc781a018d8190b8a14d36089f05c9ab855508 (patch)
treebcae2b42281c5b03670f8cdbac254ee1cf9c0dfd /keyboards
parentf1344d1f1e8738f2bbb447a7609f9c82035467cc (diff)
downloadqmk_firmware-7acc781a018d8190b8a14d36089f05c9ab855508.tar.gz
fix backlight key for the light
Diffstat (limited to 'keyboards')
-rw-r--r--keyboards/planck/keymaps/default/keymap.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/keyboards/planck/keymaps/default/keymap.c b/keyboards/planck/keymaps/default/keymap.c
index 105d8c464..d6babf316 100644
--- a/keyboards/planck/keymaps/default/keymap.c
+++ b/keyboards/planck/keymaps/default/keymap.c
@@ -209,10 +209,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#ifdef BACKLIGHT_ENABLE
backlight_step();
#endif
- PORTE &= ~(1<<6);
+ #ifdef KEYBOARD_planck_rev5
+ PORTE &= ~(1<<6);
+ #endif
} else {
unregister_code(KC_RSFT);
- PORTE |= (1<<6);
+ #ifdef KEYBOARD_planck_rev5
+ PORTE |= (1<<6);
+ #endif
}
return false;
break;