d2r2 / go-i2c

Implementation of I2C-bus written in Golang. Forked from davecheney/i2c.
MIT License
178 stars 53 forks source link

Revert "Bugfix: Mask sign extended bits" #4

Closed d2r2 closed 6 years ago

d2r2 commented 6 years ago

Reverts d2r2/go-i2c#1

d2r2 commented 6 years ago

Revert original pull request, because expression w = (w&0xFF)<<8 + w>>8, when w is 16 bit variable doesn't require masking.