forked from M-Labs/artiq
examples/time_test: RPC does not support int64 yet, cast to int
This commit is contained in:
parent
b3b61d8b6b
commit
3a6bed43e6
|
@ -13,9 +13,9 @@ class DummyPulse(AutoContext):
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def pulse(self, f, duration):
|
def pulse(self, f, duration):
|
||||||
self.print_on(now(), f)
|
self.print_on(int(now()), f)
|
||||||
delay(duration)
|
delay(duration)
|
||||||
self.print_off(now())
|
self.print_off(int(now()))
|
||||||
|
|
||||||
class TimeTest(AutoContext):
|
class TimeTest(AutoContext):
|
||||||
parameters = "a b c d"
|
parameters = "a b c d"
|
||||||
|
|
Loading…
Reference in New Issue