summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/serial.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-26 04:23:50 +0300
committerDevaev Maxim <[email protected]>2019-09-26 04:23:50 +0300
commit5e1e3cdf640face90ac5898ea4de7484c5edeae1 (patch)
tree71997b466302594a43929076a817b5748927512e /kvmd/plugins/hid/serial.py
parent2f767573d301dbc2b9403363a71ff7acf38049b4 (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/hid/serial.py')
-rw-r--r--kvmd/plugins/hid/serial.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py
index 7b7c4275..5b78e5a9 100644
--- a/kvmd/plugins/hid/serial.py
+++ b/kvmd/plugins/hid/serial.py
@@ -82,7 +82,7 @@ class _KeyEvent(_BoolEvent):
assert self.name in keymap.KEYMAP
def make_command(self) -> bytes:
- code = keymap.KEYMAP[self.name]
+ code = keymap.KEYMAP[self.name].serial.code
key_bytes = bytes([code])
assert len(key_bytes) == 1, (self, key_bytes, code)
state_bytes = (b"\x01" if self.state else b"\x00")