1
0
Fork 0

Change struct key_t

This commit is contained in:
tmk 2013-02-13 12:16:24 +09:00
parent 9bc82bf61c
commit c4421f585b
6 changed files with 9 additions and 15 deletions

View file

@ -314,7 +314,7 @@ void keymap_call_function(keyrecord_t *record, uint8_t id, uint8_t opt)
/* translates key to keycode */
uint8_t keymap_key_to_keycode(uint8_t layer, key_t key)
{
return pgm_read_byte(&keymaps[(layer)][(key.pos.row)][(key.pos.col)]);
return pgm_read_byte(&keymaps[(layer)][(key.row)][(key.col)]);
}
/* translates Fn index to action */