mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Should be byte string
This commit is contained in:
parent
61f428fd40
commit
d53a981dd1
@ -636,7 +636,7 @@ class SMART_DEVICE_APP(DeviceConfig, DevicePlugin):
|
||||
s = self._json_encode(self.opcodes[op], arg)
|
||||
if print_debug_info and extra_debug:
|
||||
self._debug('send string', s)
|
||||
self._send_byte_string(self.device_socket, (b'%d' % len(s)) + s)
|
||||
self._send_byte_string(self.device_socket, (b'%d' % len(s)) + s.encode())
|
||||
if not wait_for_response:
|
||||
return None, None
|
||||
return self._receive_from_client(print_debug_info=print_debug_info)
|
||||
|
Loading…
x
Reference in New Issue
Block a user