From 4de670b3701fd839d5bcadcc2f3c48854ece78e9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 19 Aug 2014 17:53:35 +0800 Subject: [PATCH] examples/dds_test: use integer as boolean (now supported by compiler) --- examples/dds_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dds_test.py b/examples/dds_test.py index cd832dddb..5e8fa3137 100644 --- a/examples/dds_test.py +++ b/examples/dds_test.py @@ -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)