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:
Jasper Blanckenburg 2023-02-22 21:11:31 +01:00
parent 25e0df291b
commit 66aa66f844

View File

@ -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")