summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-25 07:09:37 +0300
committerDevaev Maxim <[email protected]>2019-09-25 07:09:37 +0300
commitdf3e2875d7044a627a0b6e640746e7a24f7539a6 (patch)
treef7b8813e1c81d5dc32fabf5f4927ecf69de1b746 /kvmd
parent5c4e8f7962fe89ee0dcdea9ba859f7045fa2d6d8 (diff)
otg: fixed keyboard report_length
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/apps/otg/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/otg/__init__.py b/kvmd/apps/otg/__init__.py
index 79f66cc3..cd17252f 100644
--- a/kvmd/apps/otg/__init__.py
+++ b/kvmd/apps/otg/__init__.py
@@ -100,11 +100,11 @@ def _cmd_start(config: Section) -> None:
symlink(func_path, join(config_path, "acm.usb0"))
if config.kvmd.hid.type == "otg":
- func_path = join(gadget_path, "functions/hid.usb0")
+ func_path = join(gadget_path, "functions/hid.usb0") # Keyboard
mkdir(func_path)
_write(join(func_path, "protocol"), "1")
_write(join(func_path, "subclass"), "1")
- _write(join(func_path, "report_length"), "1")
+ _write(join(func_path, "report_length"), "8")
with open(join(func_path, "report_desc"), "wb") as report_file:
report_file.write(
b"\x05\x01\x09\x06\xa1\x01\x05\x07\x19\xe0\x29\xe7\x15\x00"