diff options
author | Devaev Maxim <[email protected]> | 2020-06-04 07:54:26 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-06-04 07:55:24 +0300 |
commit | 9e60f24c54e50b6d39ec28db53310748ce87df6f (patch) | |
tree | 6e259d05b2646704c9962e9db4bebbe90f536cc4 /kvmd | |
parent | 9cee98310deb851c4a5c36b1e593f032f8234c32 (diff) |
fix
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/hid/serial.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py index 6f92d9e4..6a6c83ac 100644 --- a/kvmd/plugins/hid/serial.py +++ b/kvmd/plugins/hid/serial.py @@ -320,7 +320,6 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst if not self.__noop: if tty.in_waiting: tty.read(tty.in_waiting) - assert tty.write(request) == len(request) response = tty.read(4) else: @@ -333,7 +332,7 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst else: assert len(response) == 4, response if self.__make_crc16(response[-4:-2]) != struct.unpack(">H", response[-2:])[0]: - get_logger().error("Invalid response CRC; requesting response again ...") + logger.error("Invalid response CRC; requesting response again ...") request = self.__make_request(b"\x02\x00\x00\x00\x00") # Repeat an answer else: code = response[1] |