mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 03:08:27 +08:00
examples/dds_test: use integer as boolean (now supported by compiler)
This commit is contained in:
parent
76cef042a5
commit
4de670b370
@ -9,7 +9,7 @@ class DDSTest(AutoContext):
|
||||
def run(self):
|
||||
i = 0
|
||||
while i < 10000:
|
||||
if i & 0x200 != 0:
|
||||
if i & 0x200:
|
||||
self.led.set(1)
|
||||
else:
|
||||
self.led.set(0)
|
||||
|
Loading…
Reference in New Issue
Block a user