summaryrefslogtreecommitdiff
path: root/hid/genmap.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-07-13 06:34:32 +0000
committerDevaev Maxim <[email protected]>2018-07-13 06:34:32 +0000
commit65b3bd8866f86a01fd700e308908f02684a36660 (patch)
tree36e858d700feef945ed12bd46fa4287a9f4dc784 /hid/genmap.py
parent30f7fc052e3a231abb6b1f1aabeb71172a6ccd9b (diff)
hid: using KEY_ERROR_UNDEFINED instead of 0
Diffstat (limited to 'hid/genmap.py')
-rwxr-xr-xhid/genmap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hid/genmap.py b/hid/genmap.py
index 2e3183a8..cb8f3ce5 100755
--- a/hid/genmap.py
+++ b/hid/genmap.py
@@ -29,7 +29,7 @@ def main() -> None:
hid_header_file.write("INLINE KeyboardKeycode keymap(uint8_t code) {\n\tswitch(code) {\n")
for (code, hid_key, _) in sorted(keymap, key=operator.itemgetter(1)):
hid_header_file.write("\t\tcase %d: return %s;\n" % (code, hid_key))
- hid_header_file.write("\t\tdefault: return 0;\n\t}\n}\n")
+ hid_header_file.write("\t\tdefault: return KEY_ERROR_UNDEFINED;\n\t}\n}\n")
if __name__ == "__main__":