diff options
author | Devaev Maxim <[email protected]> | 2020-07-16 22:01:07 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-07-16 22:01:07 +0300 |
commit | 32a2e86363b4633407cb3193d4a1c7133d55a03e (patch) | |
tree | da554d7223852a8b38ca2b5e1b36896e6371c787 /hid/src/keymap.h.mako | |
parent | 2f640b7a08a9de8707f18e12452763125e354105 (diff) |
refactoring
Diffstat (limited to 'hid/src/keymap.h.mako')
-rw-r--r-- | hid/src/keymap.h.mako | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hid/src/keymap.h.mako b/hid/src/keymap.h.mako index 9170117d..4dd1937c 100644 --- a/hid/src/keymap.h.mako +++ b/hid/src/keymap.h.mako @@ -29,7 +29,7 @@ <%! import operator %> INLINE KeyboardKeycode keymap(uint8_t code) { switch(code) { -% for km in sorted(keymap, key=operator.attrgetter("arduino_name")): +% for km in sorted(keymap, key=operator.attrgetter("serial_code")): case ${km.serial_code}: return ${km.arduino_name}; % endfor default: return KEY_ERROR_UNDEFINED; |