]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - keyboard/stm32_f103_onekey/keymap_plain.c
core: Clean up code of Locking key support
[max/tmk_keyboard.git] / keyboard / stm32_f103_onekey / keymap_plain.c
index 8de1c0279e0190b820c15df7cbd262b7a23a4de1..5aee2b7fc093319469a6f0d865b6d842985a394e 100644 (file)
@@ -28,7 +28,7 @@ static const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     {{KC_CAPS}}, // test with KC_CAPS, KC_A, KC_BTLD
 };
 
-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)];
 }