Skip to content

Commit 6d1293c

Browse files
committed
check for None specifically with if statement
1 parent 035a677 commit 6d1293c

File tree

1 file changed

+1
-1
lines changed
  • FunHouse_IOT_Hub/neopixel_remote

1 file changed

+1
-1
lines changed

FunHouse_IOT_Hub/neopixel_remote/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
# Used to prevent the touchscreen sending incorrect results
137137
if last_index == index:
138138
color = colors[index]
139-
if colors[index]:
139+
if colors[index] is not None:
140140
group[1].fill = color
141141
if last_color != color:
142142
color_str = "#{:06x}".format(color)

0 commit comments

Comments
 (0)