Skip to content

Commit 7acc781

Browse files
committed
fix backlight key for the light
1 parent f1344d1 commit 7acc781

File tree

1 file changed

+6
-2
lines changed
  • keyboards/planck/keymaps/default

1 file changed

+6
-2
lines changed

keyboards/planck/keymaps/default/keymap.c

+6-2
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
209209
#ifdef BACKLIGHT_ENABLE
210210
backlight_step();
211211
#endif
212-
PORTE &= ~(1<<6);
212+
#ifdef KEYBOARD_planck_rev5
213+
PORTE &= ~(1<<6);
214+
#endif
213215
} else {
214216
unregister_code(KC_RSFT);
215-
PORTE |= (1<<6);
217+
#ifdef KEYBOARD_planck_rev5
218+
PORTE |= (1<<6);
219+
#endif
216220
}
217221
return false;
218222
break;

0 commit comments

Comments
 (0)