forked from M-Labs/artiq
1
0
Fork 0

ad5360: revert incorrect part of a9798ae2

We don't have enumerate() yet.
This commit is contained in:
Sebastien Bourdeauducq 2017-10-23 18:50:50 +08:00
parent a9798ae2b1
commit 42aca0d64a
1 changed files with 2 additions and 2 deletions

View File

@ -174,8 +174,8 @@ class AD5360:
self.bus.ref_period_mu) - self.bus.ref_period_mu) -
3*self.bus.ref_period_mu - 3*self.bus.ref_period_mu -
self.core.seconds_to_mu(1.5*us)) self.core.seconds_to_mu(1.5*us))
for i, value in enumerate(values): for i in range(len(values)):
self.write_channel(i, value, op) self.write_channel(i, values[i], op)
delay_mu(3*self.bus.ref_period_mu + # latency alignment ttl to spi 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.core.seconds_to_mu(1.5*us)) # t10 max busy low for one channel
self.load() self.load()