Created
June 17, 2016 11:12
-
-
Save jdiez17/9fa18a3c3f3932964f0f395e014b2861 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
static float decode_float(const uint8_t *data) { | |
float f; | |
uint8_t bytes[] = {data[3], data[2], data[1], data[0]}; | |
memcpy(&f, bytes, 4); | |
return f; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment