forked from M-Labs/artiq
1
0
Fork 0

novatech409b: fix get_status

This commit is contained in:
Sebastien Bourdeauducq 2016-09-23 11:03:37 +08:00
parent 2d6171e8c4
commit fac0c68cd1
1 changed files with 2 additions and 1 deletions

View File

@ -177,7 +177,8 @@ class Novatech409B:
"00989680 2000 01F5 0000 00000000 00000000 000301", "00989680 2000 01F5 0000 00000000 00000000 000301",
"80 BC0000 0000 0102 21"] "80 BC0000 0000 0102 21"]
else: else:
self.port.reset_input_buffer() self.port.ser.reset_input_buffer()
result = []
await self.port.write(("QUE" + "\r\n").encode()) await self.port.write(("QUE" + "\r\n").encode())
for i in range(5): for i in range(5):
m = (await self._ser_readline()).rstrip().decode() m = (await self._ser_readline()).rstrip().decode()