Merge pull request #2548 from FoamyGuy/fix_black_color_square

Fix black square in the neopixel remote
This commit is contained in:
Anne Barela 2023-06-26 19:31:47 -04:00 committed by GitHub
commit 5f2ea6233d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,7 +136,7 @@ while True:
# Used to prevent the touchscreen sending incorrect results
if last_index == index:
color = colors[index]
if colors[index]:
if colors[index] is not None:
group[1].fill = color
if last_color != color:
color_str = "#{:06x}".format(color)