From 5e1e3cdf640face90ac5898ea4de7484c5edeae1 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Thu, 26 Sep 2019 04:23:50 +0300 Subject: refactoring --- hid/src/keymap.h.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hid') diff --git a/hid/src/keymap.h.mako b/hid/src/keymap.h.mako index 6a965ca9..7eb4d5d0 100644 --- a/hid/src/keymap.h.mako +++ b/hid/src/keymap.h.mako @@ -29,8 +29,8 @@ <%! import operator %> INLINE KeyboardKeycode keymap(uint8_t code) { switch(code) { -% for km in sorted(keymap, key=operator.attrgetter("arduino_hid_key")): - case ${km.arduino_hid_code}: return ${km.arduino_hid_key}; +% for km in sorted(keymap, key=operator.attrgetter("serial_hid_key")): + case ${km.serial_hid_code}: return ${km.serial_hid_key}; % endfor default: return KEY_ERROR_UNDEFINED; } -- cgit v1.2.3