aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/ootx_decode/ootx_decoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ootx_decode/ootx_decoder.c b/tools/ootx_decode/ootx_decoder.c
index eee4e7e..98bac67 100644
--- a/tools/ootx_decode/ootx_decoder.c
+++ b/tools/ootx_decode/ootx_decoder.c
@@ -225,7 +225,7 @@ float _to_float(uint8_t* data) {
uint32_t *ftmp = (uint32_t*)&f; //use the allocated floating point memory
- if (((x & 0x7c00) == 0x0000) && ((x & 0x03ff) == 0)) return f; //zero
+ if ((x & 0x7FFF) == 0) return f; //zero
//sign
*ftmp = x & 0x8000;