summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/_mcu/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-10-29 13:51:58 +0300
committerDevaev Maxim <[email protected]>2020-11-11 22:24:25 +0300
commita5dbc1adeaa0d790206580d5f94c7503808ea1f0 (patch)
treeddb8d85b841cf075eafffbdf24e98f7cbfc0be70 /kvmd/plugins/hid/_mcu/__init__.py
parentaaef672ac2ce5dd2cee17ad571e6cab35f284ee4 (diff)
refactoring
Diffstat (limited to 'kvmd/plugins/hid/_mcu/__init__.py')
-rw-r--r--kvmd/plugins/hid/_mcu/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/_mcu/__init__.py b/kvmd/plugins/hid/_mcu/__init__.py
index 71981e0d..f762567b 100644
--- a/kvmd/plugins/hid/_mcu/__init__.py
+++ b/kvmd/plugins/hid/_mcu/__init__.py
@@ -153,7 +153,7 @@ class _MouseWheelEvent(_BaseEvent):
# =====
class BasePhyConnection:
- def send(self, request: bytes, receive: int) -> bytes:
+ def send(self, request: bytes) -> bytes:
raise NotImplementedError
@@ -396,7 +396,7 @@ class BaseMcuHid(BaseHid, multiprocessing.Process): # pylint: disable=too-many-
def __send_request(self, conn: BasePhyConnection, request: bytes) -> bytes:
if not self.__noop:
- response = conn.send(request, 4)
+ response = conn.send(request)
else:
response = b"\x33\x20" # Magic + OK
response += struct.pack(">H", self.__make_crc16(response))