From d3073022acf90af7b7ee3d2588a1eeeddf0d8fa0 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 19 Mar 2022 19:06:12 +0800 Subject: [PATCH] aqctl_moninj_proxy: fix all major bugs --- artiq/frontend/aqctl_moninj_proxy.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/artiq/frontend/aqctl_moninj_proxy.py b/artiq/frontend/aqctl_moninj_proxy.py index 760be7020..12767891c 100755 --- a/artiq/frontend/aqctl_moninj_proxy.py +++ b/artiq/frontend/aqctl_moninj_proxy.py @@ -88,7 +88,7 @@ class MonitorMux: for listener in listeners: if event[0] == EventType.PROBE: listener.monitor_cb(event[1], event[2], value) - elif event[1] == EventType.MONITOR: + elif event[0] == EventType.INJECTION: listener.injection_status_cb(event[1], event[2], value) else: raise ValueError @@ -129,19 +129,19 @@ class ProxyConnection: ty = await self.reader.read(1) if not ty: return - if ty == "\x00": # MonitorProbe + if ty == b"\x00": # MonitorProbe packet = await self.reader.readexactly(6) enable, channel, probe = struct.unpack("