Skip to content

Commit 056f360

Browse files
mcscopemattytrentini
authored andcommitted
reduce scope of changes
1 parent 10ab3e8 commit 056f360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_dotstar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def show(self):
251251
for i in range(START_HEADER_SIZE):
252252
buf[i] = 0x00
253253
for i in range(START_HEADER_SIZE, self.end_header_index):
254-
buf[i] = self._buf[i] if i % 4 == 0 else math.ceil(self._buf[i] * self._brightness)
254+
buf[i] = self._buf[i] if i % 4 == 0 else int(self._buf[i] * self._brightness)
255255
# Four 0xff bytes at the end.
256256
for i in range(self.end_header_index, len(buf)):
257257
buf[i] = 0xff

0 commit comments

Comments
 (0)