2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

coredevice/analyzer: support TTL inputs

This commit is contained in:
Sebastien Bourdeauducq 2015-12-26 21:24:53 +08:00
parent 7eb4067477
commit 1c36ae0672

View File

@ -148,12 +148,14 @@ class TTLHandler:
self.last_value = str(message.data)
if self.oe:
self.channel_value.set_value(self.last_value)
elif messages.address == 1:
elif message.address == 1:
self.oe = bool(message.data)
if self.oe:
self.channel_value.set_value(self.last_value)
else:
self.channel_value.set_value("X")
elif isinstance(message, InputMessage):
self.channel_value.set_value(str(message.data))
class DDSHandler: