artiq_sinara_tester: fix handling of IO_UPDATE with SU-Servo

This commit is contained in:
Sebastien Bourdeauducq 2021-11-20 16:53:09 +08:00
parent d9b01ed81a
commit 946254d22e
1 changed files with 3 additions and 2 deletions

View File

@ -101,7 +101,8 @@ class SinaraTester(EnvExperiment):
sw_device = desc["arguments"]["sw_device"]
del self.ttl_outs[sw_device]
elif (module, cls) == ("artiq.coredevice.urukul", "CPLD"):
io_update_device = desc["arguments"]["io_update_device"]
io_update_device = desc["arguments"].get("io_update_device", None)
if io_update_device is not None:
del self.ttl_outs[io_update_device]
elif (module, cls) == ("artiq.coredevice.sampler", "Sampler"):
cnv_device = desc["arguments"]["cnv_device"]