examples/dds_test: use integer as boolean (now supported by compiler)

This commit is contained in:
Sebastien Bourdeauducq 2014-08-19 17:53:35 +08:00
parent 76cef042a5
commit 4de670b370

View File

@ -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)