From 42aca0d64a305a13e78738a181b990bbe8e972cd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 23 Oct 2017 18:50:50 +0800 Subject: [PATCH] ad5360: revert incorrect part of a9798ae2 We don't have enumerate() yet. --- artiq/coredevice/ad5360.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artiq/coredevice/ad5360.py b/artiq/coredevice/ad5360.py index aac70c962..c470fbec2 100644 --- a/artiq/coredevice/ad5360.py +++ b/artiq/coredevice/ad5360.py @@ -174,8 +174,8 @@ class AD5360: self.bus.ref_period_mu) - 3*self.bus.ref_period_mu - self.core.seconds_to_mu(1.5*us)) - for i, value in enumerate(values): - self.write_channel(i, value, op) + for i in range(len(values)): + self.write_channel(i, values[i], op) delay_mu(3*self.bus.ref_period_mu + # latency alignment ttl to spi self.core.seconds_to_mu(1.5*us)) # t10 max busy low for one channel self.load()