mirror of https://github.com/m-labs/artiq.git
test/full_stack: tolerate FP rounding errors
This commit is contained in:
parent
8b5b219a18
commit
85c5b157a0
|
@ -82,9 +82,9 @@ class _PulseLogger(AutoDB):
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def pulse(self, f, duration):
|
def pulse(self, f, duration):
|
||||||
self.on(int(now()*1000000000), f)
|
self.on(round(now()*1000000000), f)
|
||||||
delay(duration)
|
delay(duration)
|
||||||
self.off(int(now()*1000000000))
|
self.off(round(now()*1000000000))
|
||||||
|
|
||||||
|
|
||||||
class _Pulses(AutoDB):
|
class _Pulses(AutoDB):
|
||||||
|
|
Loading…
Reference in New Issue