Temperature calculation looks wrong
Closed this issue · 2 comments
normanr commented
Documentation has: tempC = 46.85 + 175.72 / 65536.0 * data.readUInt16BE
Uint must be >0 so tempC can't be less than 46? Maybe there's a missing negative sign? Or unsigned int should be signed int?
marcnicholas commented
Hi Norman,
Yes, there's a negative sign in front of the calculation.....thanks for catching that!
We'll push an update today.
-m
marcnicholas commented
Fix pushed.