Open capswiz opened 12 years ago
Suggested fix (from pull request) is not accurate for me because the unary minus will be performed before the & The right code must be: _lastTemperature = -(currentTemperature & 0x7FFF); Now it work fine for my instance
So I removed "currentTemperature &= 0x7FFF" line 208 and put "& 0x7FFF" in the expression line 209. Now it works with negative temperatures.