]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - converter/m0110_usb/keymap.c
Add extra commands Bell/Click to Sun converter
[max/tmk_keyboard.git] / converter / m0110_usb / keymap.c
index 5bcb6e671463e09c6f104ab2438215a8f23e4929..4dd419d1b9a74359afee25d4684da9469bd75ac8 100644 (file)
@@ -203,12 +203,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]);
 }