Skip to content

Commit

Permalink
hub75: fix data buffering
Browse files Browse the repository at this point in the history
  • Loading branch information
ehime-iyokan authored and deadprogram committed Jan 4, 2025
1 parent 0623bb4 commit 17f2732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hub75/hub75.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (d *Device) fillMatrixBuffer(x int16, y int16, r uint8, g uint8, b uint8) {
if r > colorTresh {
d.buffer[c][offsetR] |= 1 << bitSelect
} else {
d.buffer[c][offsetR] = d.buffer[c][offsetR] &^ 1 << bitSelect
d.buffer[c][offsetR] &^= 1 << bitSelect
}
if g > colorTresh {
d.buffer[(c+d.colorThirdStep)%d.colorDepth][offsetG] |= 1 << bitSelect
Expand Down

0 comments on commit 17f2732

Please sign in to comment.