From e64d923a67f23c4237da6c927a3bad6c81ad5453 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 27 Feb 2017 17:56:45 +0800 Subject: [PATCH] dashboard: fix moninj display refresh issues after mode changes --- artiq/dashboard/moninj.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index 8c13a0fd6..723e6d47a 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -247,11 +247,13 @@ class _DeviceManager: widget = self.ttl_widgets_by_channel[channel] if mode == "0": widget.cur_override = True + widget.cur_level = False self.core_connection.inject(channel, TTLOverride.level.value, 0) self.core_connection.inject(channel, TTLOverride.oe.value, 1) self.core_connection.inject(channel, TTLOverride.en.value, 1) elif mode == "1": widget.cur_override = True + widget.cur_level = True self.core_connection.inject(channel, TTLOverride.level.value, 1) self.core_connection.inject(channel, TTLOverride.oe.value, 1) self.core_connection.inject(channel, TTLOverride.en.value, 1) @@ -260,6 +262,8 @@ class _DeviceManager: self.core_connection.inject(channel, TTLOverride.en.value, 0) else: raise ValueError + # override state may have changed + widget.refresh_display() def setup_ttl_monitoring(self, enable, channel): if self.core_connection is not None: