diff --git a/EXAMPLES/Python/DHT22_AM2302_SENSOR/DHT22.py b/EXAMPLES/Python/DHT22_AM2302_SENSOR/DHT22.py index 519585e..c9ce87e 100755 --- a/EXAMPLES/Python/DHT22_AM2302_SENSOR/DHT22.py +++ b/EXAMPLES/Python/DHT22_AM2302_SENSOR/DHT22.py @@ -237,7 +237,7 @@ class sensor: self.pi.set_watchdog(self.gpio, 0) - if self.cb != None: + if self.cb is not None: self.cb.cancel() self.cb = None