X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=keyboard%2Fstm32_f072_onekey%2Fkeymap_plain.c;h=88c56baa69755492cc0e197c0586fa51b17d2e72;hb=HEAD;hp=8de1c0279e0190b820c15df7cbd262b7a23a4de1;hpb=72b16683408810856e9d33b1f521ad6a15bf0699;p=max%2Ftmk_keyboard.git diff --git a/keyboard/stm32_f072_onekey/keymap_plain.c b/keyboard/stm32_f072_onekey/keymap_plain.c index 8de1c027..88c56baa 100644 --- a/keyboard/stm32_f072_onekey/keymap_plain.c +++ b/keyboard/stm32_f072_onekey/keymap_plain.c @@ -18,6 +18,7 @@ along with this program. If not, see . #include "keycode.h" #include "action.h" #include "action_macro.h" +#include "action_code.h" #include "report.h" #include "host.h" #include "print.h" @@ -28,7 +29,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 +41,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 (action_t)fn_actions[FN_INDEX(keycode)]; }