fix test issues in xcp.py (#1882)

remove shebang, fix typing
This commit is contained in:
Jason Young
2024-02-20 13:41:48 -06:00
committed by GitHub
parent 73e4733bfb
commit d2d683a04c

View File

@@ -1,4 +1,3 @@
#!/usr/bin/env python3
import sys
import time
import struct
@@ -159,7 +158,7 @@ class XcpClient():
dat = rx_data[2:]
raise CommandResponseError(f"{hex(err)} - {err_desc} {dat}", err)
return rx_data[1:]
return bytes(rx_data[1:])
time.sleep(0.001)
raise CommandTimeoutError("timeout waiting for response")