From fac0c68cd1343c8aa2798bbec5733238209fe899 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 23 Sep 2016 11:03:37 +0800 Subject: [PATCH] novatech409b: fix get_status --- artiq/devices/novatech409b/driver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/devices/novatech409b/driver.py b/artiq/devices/novatech409b/driver.py index a8ffbdd2f..4a734544b 100644 --- a/artiq/devices/novatech409b/driver.py +++ b/artiq/devices/novatech409b/driver.py @@ -177,7 +177,8 @@ class Novatech409B: "00989680 2000 01F5 0000 00000000 00000000 000301", "80 BC0000 0000 0102 21"] else: - self.port.reset_input_buffer() + self.port.ser.reset_input_buffer() + result = [] await self.port.write(("QUE" + "\r\n").encode()) for i in range(5): m = (await self._ser_readline()).rstrip().decode()