2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

artiq_sinara_tester: fix urukul rf switch

This commit is contained in:
mwojcik 2022-04-22 11:03:57 +08:00
parent 4e7b1c76cc
commit 86142db56b

View File

@ -333,13 +333,13 @@ class SinaraTester(EnvExperiment):
print("Press ENTER when done.")
input()
sw = [channel_dev for channel_name, channel_dev in self.urukuls if hasattr(channel_dev, "sw")]
sw = [channel_dev for channel_name, channel_dev in self.urukuls if channel_dev.sw.is_some()]
if sw:
print("Testing RF switch control. Check LEDs at urukul RF ports.")
print("Press ENTER when done.")
for swi in sw:
self.cfg_sw_off_urukul(swi)
self.rf_switch_wave([swi.sw for swi in sw])
self.rf_switch_wave([swi.sw.unwrap() for swi in sw])
@kernel
def init_mirny(self, cpld: Mirny):