From 8a81986191ba797a8501cd7b3f8a0e9b58b5b30e Mon Sep 17 00:00:00 2001 From: tmk Date: Fri, 19 Oct 2012 15:33:02 +0900 Subject: Fix keymap to adjust new keyboard.c. --- converter/news_usb/keymap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'converter/news_usb') diff --git a/converter/news_usb/keymap.c b/converter/news_usb/keymap.c index 19654095c8..6f30d59c18 100644 --- a/converter/news_usb/keymap.c +++ b/converter/news_usb/keymap.c @@ -114,12 +114,12 @@ uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col) return pgm_read_byte(&keymaps[(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]); } -- cgit v1.2.1