Skip to content

Commit 510566c

Browse files
siddaciousBryan Siepert
authored and
Bryan Siepert
committed
fix for issue adafruit#27, _set_value() not accepting ints
1 parent fe9109e commit 510566c

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)