One less magic constant.
This commit is contained in:
parent
4bb070be50
commit
4517055320
2
net_io.c
2
net_io.c
|
@ -766,7 +766,7 @@ float ieee754_binary32_le_to_float(uint8_t *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* normalized value */
|
/* 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)
|
static void handle_radarcape_position(float lat, float lon, float alt)
|
||||||
|
|
Loading…
Reference in a new issue