Skip to content

Commit

Permalink
Fix bug of matrix size of keymap_in_eeprom
Browse files Browse the repository at this point in the history
  • Loading branch information
kairyu committed Sep 22, 2015
1 parent dfe9372 commit b91d98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/keymap_in_eeprom.h
Expand Up @@ -50,7 +50,7 @@ typedef struct {

#define KEYMAP_SIZE (sizeof(uint16_t) * FN_ACTIONS_COUNT + sizeof(uint8_t) * KEYS_COUNT)
#define KEYMAP_WORD_SIZE ((KEYMAP_SIZE + 1) / 2)
#define KEY_OFFSET(layer, row, col) (layer * matrix_rows() * matrix_cols() + row * matrix_cols() + col)
#define KEY_OFFSET(layer, row, col) (layer * MATRIX_SIZE + row * matrix_cols() + col)

void keymap_in_eeprom_init(void);
void keymap_in_eeprom_disable(void);
Expand Down

0 comments on commit b91d98e

Please sign in to comment.