diff options
Diffstat (limited to 'kvmd/plugins/hid/serial.py')
-rw-r--r-- | kvmd/plugins/hid/serial.py | 2 |
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") |