-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels