Created
January 4, 2013 12:20
-
-
Save crabtw/4452236 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float temp_decode(int16_t temp) { | |
int16_t hi = temp & 0xff00; | |
int16_t lo = temp & 0x00ff; | |
return (hi + lo) / 256.0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment