Remove unnecessary keymap function

This commit is contained in:
Jeremy Soller
2020-09-15 12:37:43 -06:00
committed by Jeremy Soller
parent f36b38a7b2
commit 432c4f64d2
10 changed files with 4 additions and 38 deletions

View File

@ -311,7 +311,10 @@ void kbscan_event(void) {
kbscan_last_layer[i][j] = kbscan_layer;
}
uint8_t key_layer = kbscan_last_layer[i][j];
uint16_t key = keymap(i, j, key_layer);
uint16_t key = 0;
if (key_layer < KM_LAY) {;
key = KEYMAP[key_layer][i][j];
}
if (key) {
DEBUG("KB %d, %d, %d = 0x%04X, %d\n", i, j, key_layer, key, new_b);
if(!kbscan_press(key, new_b, &layer)){