diff options
author | Devaev Maxim <[email protected]> | 2020-10-29 13:51:58 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-11-11 22:24:25 +0300 |
commit | a5dbc1adeaa0d790206580d5f94c7503808ea1f0 (patch) | |
tree | ddb8d85b841cf075eafffbdf24e98f7cbfc0be70 /kvmd/plugins/hid/_mcu/__init__.py | |
parent | aaef672ac2ce5dd2cee17ad571e6cab35f284ee4 (diff) |
refactoring
Diffstat (limited to 'kvmd/plugins/hid/_mcu/__init__.py')
-rw-r--r-- | kvmd/plugins/hid/_mcu/__init__.py | 4 |
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)) |