Skip to content

Commit 77dfb7e

Browse files
siddaciousmattytrentini
authored andcommitted
fix for issue adafruit#27, _set_value() not accepting ints
1 parent f0a592d commit 77dfb7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_dotstar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def _set_item(self, index, value):
157157
if isinstance(value, int):
158158
rgb = (value >> 16, (value >> 8) & 0xff, value & 0xff)
159159

160-
if len(value) == 4:
160+
if len(rgb) == 4:
161161
brightness = value[3]
162162
# Ignore value[3] below.
163163
else:

0 commit comments

Comments
 (0)