summaryrefslogtreecommitdiffstats
path: root/keyboards/planck/keymaps
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2018-06-28 08:31:21 -0400
committerJack Humbert <jack.humb@gmail.com>2018-06-28 08:39:34 -0400
commit7acc781a018d8190b8a14d36089f05c9ab855508 (patch)
treebcae2b42281c5b03670f8cdbac254ee1cf9c0dfd /keyboards/planck/keymaps
parentf1344d1f1e8738f2bbb447a7609f9c82035467cc (diff)
fix backlight key for the light
Diffstat (limited to 'keyboards/planck/keymaps')
-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 105d8c464e..d6babf3164 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;