aboutsummaryrefslogtreecommitdiff
path: root/converter/adb_usb
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-10-19 15:33:02 +0900
committertmk <nobody@nowhere>2012-10-19 15:33:02 +0900
commit8a81986191ba797a8501cd7b3f8a0e9b58b5b30e (patch)
treef5e0d4bde0727fb54c71511f41a601db85fc509c /converter/adb_usb
parent81141ad0eba1a9db9abd0f7903d8077c28e76b40 (diff)
downloadqmk_firmware-8a81986191ba797a8501cd7b3f8a0e9b58b5b30e.tar.gz
qmk_firmware-8a81986191ba797a8501cd7b3f8a0e9b58b5b30e.zip
Fix keymap to adjust new keyboard.c.
Diffstat (limited to 'converter/adb_usb')
-rw-r--r--converter/adb_usb/keymap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/converter/adb_usb/keymap.c b/converter/adb_usb/keymap.c
index 60e8c99f4..c622dc623 100644
--- a/converter/adb_usb/keymap.c
+++ b/converter/adb_usb/keymap.c
@@ -119,12 +119,12 @@ uint8_t keymap_get_keycode(uint8_t layer, uint8_t row, uint8_t col)
119 return KEYCODE(layer, row, col); 119 return KEYCODE(layer, row, col);
120} 120}
121 121
122uint8_t keymap_fn_layer(uint8_t fn_bits) 122uint8_t keymap_fn_layer(uint8_t index)
123{ 123{
124 return pgm_read_byte(&fn_layer[biton(fn_bits)]); 124 return pgm_read_byte(&fn_layer[index]);
125} 125}
126 126
127uint8_t keymap_fn_keycode(uint8_t fn_bits) 127uint8_t keymap_fn_keycode(uint8_t index)
128{ 128{
129 return pgm_read_byte(&fn_keycode[(biton(fn_bits))]); 129 return pgm_read_byte(&fn_keycode[index]);
130} 130}