]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - keyboard/teensy_lc_onekey/keymap_plain.c
fc660c: Update README
[max/tmk_keyboard.git] / keyboard / teensy_lc_onekey / keymap_plain.c
index a83574896b66dd2c4d2d714c1747a8fd17e7ef2f..16b05a75eed247de222c78224d123ffa01aedcc5 100644 (file)
@@ -25,10 +25,10 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #include "keymap.h"
 
 static const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
-    {{KC_BTLD}},
-};  // to test: KC_CAPS, KT_BTLD
+    {{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)];
 }