summaryrefslogtreecommitdiff
path: root/genmap.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-26 03:19:24 +0300
committerDevaev Maxim <[email protected]>2019-09-26 03:19:24 +0300
commit2f767573d301dbc2b9403363a71ff7acf38049b4 (patch)
treeb85360f2c941bdec0a2f60c6bd32fad2bbbfc899 /genmap.py
parentbf9e004002dd40437cb005fa317c66c7f3d5bae3 (diff)
refactoring
Diffstat (limited to 'genmap.py')
-rwxr-xr-xgenmap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/genmap.py b/genmap.py
index befa38ba..dff915ee 100755
--- a/genmap.py
+++ b/genmap.py
@@ -33,7 +33,7 @@ import mako.template
# =====
@dataclasses.dataclass(frozen=True)
class _KeyMapping:
- kvmd_code: int
+ arduino_hid_code: int
arduino_hid_key: str
web_key: str
@@ -47,7 +47,7 @@ def _read_keymap_in(path: str) -> List[_KeyMapping]:
parts = list(map(str.strip, line.split()))
if len(parts) >= 3:
keymap.append(_KeyMapping(
- kvmd_code=int(parts[0]),
+ arduino_hid_code=int(parts[0]),
arduino_hid_key=parts[1],
web_key=parts[2],
))