Skip to content

Commit 0477930

Browse files
authored
incorporates suggestions
proposed changes
1 parent 38561c4 commit 0477930

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/tsl2561_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
print("Integration time = {}".format(tsl.integration_time))
4444
print("Broadband = {}".format(broadband))
4545
print("Infrared = {}".format(infrared))
46-
if lux != None:
46+
if lux is not None:
4747
print("Lux = {}".format(lux))
4848
else:
49-
print("Lux = NaN")
49+
print("Lux value is None. Possible sensor underrange or overrange.")
5050

5151
# Disble the light sensor (to save power)
5252
tsl.enabled = False

0 commit comments

Comments
 (0)