Skip to content

Commit 17f2732

Browse files
ehime-iyokandeadprogram
authored andcommitted
hub75: fix data buffering
1 parent 0623bb4 commit 17f2732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hub75/hub75.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (d *Device) fillMatrixBuffer(x int16, y int16, r uint8, g uint8, b uint8) {
167167
if r > colorTresh {
168168
d.buffer[c][offsetR] |= 1 << bitSelect
169169
} else {
170-
d.buffer[c][offsetR] = d.buffer[c][offsetR] &^ 1 << bitSelect
170+
d.buffer[c][offsetR] &^= 1 << bitSelect
171171
}
172172
if g > colorTresh {
173173
d.buffer[(c+d.colorThirdStep)%d.colorDepth][offsetG] |= 1 << bitSelect

0 commit comments

Comments
 (0)