Read data from load controller
I suspect the load controller at some point hung up because it couldn't write more data to the PC.
This commit is contained in:
parent
25e0df291b
commit
66aa66f844
@ -42,3 +42,6 @@ class Load(QObject):
|
|||||||
msb = curr_quants >> 8
|
msb = curr_quants >> 8
|
||||||
lsb = curr_quants & 0xFF
|
lsb = curr_quants & 0xFF
|
||||||
self.dev.write(bytes((msb, lsb)))
|
self.dev.write(bytes((msb, lsb)))
|
||||||
|
r = self.dev.read_all()
|
||||||
|
read_bytes = 0 if r is None else len(r)
|
||||||
|
print(f"Read {read_bytes} bytes from load controller")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user