claws / BH1750

An Arduino library for the digital light sensor breakout boards containing the BH1750FVI IC
MIT License
252 stars 108 forks source link

Fix for incorrect bit shift when setting MTReg high bits value. #58

Closed claws closed 5 years ago

claws commented 5 years ago

The change addresses the issue raised in #57 which identifies a bug in the bit shift applied to the high value of the MTReg. The value was incorrectly being ANDed with only 3 ones when it should be 5 ones.