Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix negative temperatures for DHT22 (#16)
This commit fixes issue #14 The MSB carries the sign information, which is filtered with `& 0x8000`. If the flag is present, the remainder will get multiplied by `-1`. All the remaining bits contain the value and are filtered with `& 0x7FFF`.
- Loading branch information