]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - keyboard/teensy_lc_onekey/keymap_plain.c
core: Clean up code of Locking key support
[max/tmk_keyboard.git] / keyboard / teensy_lc_onekey / keymap_plain.c
index 922fa5379cdcec48b99ad1653aaf48df2aa9c68b..16b05a75eed247de222c78224d123ffa01aedcc5 100644 (file)
@@ -28,7 +28,7 @@ static const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     {{KC_A}},
 };  // to test: KC_CAPS, KT_BTLD, KC_A
 
-static const uint16_t fn_actions[] = {
+static const action_t fn_actions[] = {
 };
 
 /* translates key to keycode */
@@ -40,5 +40,5 @@ uint8_t keymap_key_to_keycode(uint8_t layer, keypos_t key)
 /* translates Fn keycode to action */
 action_t keymap_fn_to_action(uint8_t keycode)
 {
-    return (action_t){ .code = fn_actions[FN_INDEX(keycode)] };
+    return fn_actions[FN_INDEX(keycode)];
 }