summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/kvmd/hid.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/kvmd/hid.py b/kvmd/kvmd/hid.py
index 93f74ba5..33676999 100644
--- a/kvmd/kvmd/hid.py
+++ b/kvmd/kvmd/hid.py
@@ -116,10 +116,10 @@ class Hid(multiprocessing.Process):
assert len(key_bytes) == 1, (event, key_bytes)
tty.write(
b"\01"
- + (b"\01" if event.state else b"\00")
+ key_bytes
- + b"\00"
+ + (b"\01" if event.state else b"\00")
+ + b"\00\00"
)
def __send_clear_hid(self, tty: serial.Serial) -> None:
- tty.write(b"\00\00\00\00")
+ tty.write(b"\00\00\00\00\00")