forked from M-Labs/artiq
1
0
Fork 0

coredevice/ad53xx: use len(list)

This commit is contained in:
Sebastien Bourdeauducq 2021-12-09 12:40:01 +08:00
parent 60cbde0820
commit dad23b6981
1 changed files with 2 additions and 4 deletions

View File

@ -337,11 +337,9 @@ class AD53xx:
# t10: max busy period after writing to DAC registers
t_10 = self.core.seconds_to_mu(1500.*ns)
# NAC3TODO len(values) https://git.m-labs.hk/M-Labs/nac3/issues/103
len_values = 4
# compensate all delays that will be applied
delay_mu(-t_10-int64(len_values)*self.bus.xfer_duration_mu)
for i in range(len_values):
delay_mu(-t_10-int64(len(values))*self.bus.xfer_duration_mu)
for i in range(len(values)):
self.write_dac_mu(channels[i], values[i])
delay_mu(t_10)
self.load()