summaryrefslogtreecommitdiff
path: root/hid
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-08-06 11:10:37 +0300
committerDevaev Maxim <[email protected]>2020-08-06 11:10:37 +0300
commitbf510f4ff3a97913572b6b45d878e4426a665de4 (patch)
tree2164336d1833d1eca4f77c7388b8b2e6e176e3fa /hid
parent1a7208f6db7e9ce71aff519e850a2f2fbfb96a69 (diff)
refactoring
Diffstat (limited to 'hid')
-rw-r--r--hid/src/ps2/keymap.h.mako2
-rw-r--r--hid/src/usb/keymap.h.mako2
2 files changed, 2 insertions, 2 deletions
diff --git a/hid/src/ps2/keymap.h.mako b/hid/src/ps2/keymap.h.mako
index 95e6541d..70da2f36 100644
--- a/hid/src/ps2/keymap.h.mako
+++ b/hid/src/ps2/keymap.h.mako
@@ -40,7 +40,7 @@ INLINE void keymapPs2(uint8_t code, Ps2KeyType *ps2_type, uint8_t *ps2_code) {
switch (code) {
% for km in sorted(keymap, key=operator.attrgetter("serial_code")):
- case ${km.serial_code}: *ps2_type = PS2_KEY_TYPE_${km.ps2_key.type.upper()}; *ps2_code = ${km.ps2_key.code}; return; // ${km.usb_name}
+ case ${km.serial_code}: *ps2_type = PS2_KEY_TYPE_${km.ps2_key.type.upper()}; *ps2_code = ${km.ps2_key.code}; return; // ${km.arduino_name}
% endfor
}
}
diff --git a/hid/src/usb/keymap.h.mako b/hid/src/usb/keymap.h.mako
index 924f8283..5df3a7f5 100644
--- a/hid/src/usb/keymap.h.mako
+++ b/hid/src/usb/keymap.h.mako
@@ -30,7 +30,7 @@
INLINE KeyboardKeycode keymapUsb(uint8_t code) {
switch (code) {
% for km in sorted(keymap, key=operator.attrgetter("serial_code")):
- case ${km.serial_code}: return ${km.usb_name};
+ case ${km.serial_code}: return ${km.arduino_name};
% endfor
default: return KEY_ERROR_UNDEFINED;
}