summaryrefslogtreecommitdiffstats
path: root/keyboard/hbkb/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/hbkb/keymap.c')
-rw-r--r--keyboard/hbkb/keymap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyboard/hbkb/keymap.c b/keyboard/hbkb/keymap.c
index 435cf1e95b..b89bdf8e42 100644
--- a/keyboard/hbkb/keymap.c
+++ b/keyboard/hbkb/keymap.c
@@ -220,12 +220,12 @@ uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col)
return KEYCODE(layer, row, col);
}
-uint8_t keymap_fn_layer(uint8_t fn_bits)
+uint8_t keymap_fn_layer(uint8_t index)
{
- return pgm_read_byte(&fn_layer[biton(fn_bits)]);
+ return pgm_read_byte(&fn_layer[index]);
}
-uint8_t keymap_fn_keycode(uint8_t fn_bits)
+uint8_t keymap_fn_keycode(uint8_t index)
{
- return pgm_read_byte(&fn_keycode[(biton(fn_bits))]);
+ return pgm_read_byte(&fn_keycode[index]);
}