From 4517055320434277e677721d9478a536ac9c021e Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Tue, 27 Dec 2016 19:14:20 +0000 Subject: [PATCH] One less magic constant. --- net_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net_io.c b/net_io.c index 7ed20cf..408637b 100644 --- a/net_io.c +++ b/net_io.c @@ -766,7 +766,7 @@ float ieee754_binary32_le_to_float(uint8_t *data) } /* normalized value */ - return ldexp(sign * (8388608 | raw_significand), raw_exponent - 127 - 23); + return ldexp(sign * ((1 << 23) | raw_significand), raw_exponent - 127 - 23); } static void handle_radarcape_position(float lat, float lon, float alt)