go-i2c
go-i2c copied to clipboard
WriteRegU16LE typo
Please fix typo
Now in https://github.com/d2r2/go-i2c/blob/master/i2c.go#L209 was *
instead of &
w := (value*0xFF00)>>8 + value<<8
Fixed line:
w := (value&0xFF00)>>8 + value<<8
But this variant more correct:
w := (value>>8)|(value<<8)
Same issue also at line https://github.com/d2r2/go-i2c/blob/master/i2c.go#L231