mirror of https://github.com/m-labs/artiq.git
dashboard: fix a crash touching moninj without a connection.
This commit is contained in:
parent
2f1029c292
commit
4e5ea1bbaf
|
@ -262,8 +262,8 @@ class _DeviceManager:
|
||||||
self.core_connection.inject(channel, TTLOverride.en.value, 0)
|
self.core_connection.inject(channel, TTLOverride.en.value, 0)
|
||||||
else:
|
else:
|
||||||
raise ValueError
|
raise ValueError
|
||||||
# override state may have changed
|
# override state may have changed
|
||||||
widget.refresh_display()
|
widget.refresh_display()
|
||||||
|
|
||||||
def setup_ttl_monitoring(self, enable, channel):
|
def setup_ttl_monitoring(self, enable, channel):
|
||||||
if self.core_connection is not None:
|
if self.core_connection is not None:
|
||||||
|
|
Loading…
Reference in New Issue