Skip to content

Commit

Permalink
dont double append crc
Browse files Browse the repository at this point in the history
  • Loading branch information
jurkovic-nikola committed Oct 26, 2024
1 parent 3f562ba commit 33b5b5f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/devices/memory/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,6 @@ func (d *Device) transfer(buffer []byte, address, ledDevices byte, colorRegister
time.Sleep(1 * time.Millisecond)
}
} else {
buf = append(buf, d.calculateChecksum(buf))
err := smbus.WriteBlockData(d.dev.File, address, colorRegister, buf)
if err != nil {
logger.Log(logger.Fields{"error": err, "address": address}).Error("Unable to write to i2c register")
Expand Down

0 comments on commit 33b5b5f

Please sign in to comment.