Skip to content

Commit 6c25a1d

Browse files
committed
comparison fixes
1 parent 9994021 commit 6c25a1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CLUE_BBQ/clue_bbq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@
123123

124124
temps = ibbq_service.temperatures
125125
batt = ibbq_service.battery_level
126-
if temps != None:
126+
if temps is not None:
127127
probe_count = len(temps) # check how many probes there are
128128
for i in range(probe_count):
129-
if temps[i] is not 0 and temps[i] < 1000: # unplugged probes
129+
if temps[i] != 0 and temps[i] < 1000: # unplugged probes
130130
if unit_mode:
131131
clue.pixel.fill((50, 0, 0))
132132
temp = temps[i]

0 commit comments

Comments
 (0)