From dad23b6981e8cf3eab366f39cfcc0f4fefb48e00 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 9 Dec 2021 12:40:01 +0800 Subject: [PATCH] coredevice/ad53xx: use len(list) --- artiq/coredevice/ad53xx.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/artiq/coredevice/ad53xx.py b/artiq/coredevice/ad53xx.py index 697951343..f8bbc76bb 100644 --- a/artiq/coredevice/ad53xx.py +++ b/artiq/coredevice/ad53xx.py @@ -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()