Przeglądaj źródła

fix backlight key for the light

Jack Humbert 7 lat temu
rodzic
commit
7acc781a01
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      keyboards/planck/keymaps/default/keymap.c

+ 6 - 2
keyboards/planck/keymaps/default/keymap.c

@@ -209,10 +209,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
         #ifdef BACKLIGHT_ENABLE
         #ifdef BACKLIGHT_ENABLE
           backlight_step();
           backlight_step();
         #endif
         #endif
-        PORTE &= ~(1<<6);
+        #ifdef KEYBOARD_planck_rev5
+          PORTE &= ~(1<<6);
+        #endif
       } else {
       } else {
         unregister_code(KC_RSFT);
         unregister_code(KC_RSFT);
-        PORTE |= (1<<6);
+        #ifdef KEYBOARD_planck_rev5
+          PORTE |= (1<<6);
+        #endif
       }
       }
       return false;
       return false;
       break;
       break;