Keep Companion get radio compatible with upstream CSV

This commit is contained in:
mikecarper committed 2026-09-30 23:48:47 -07:00
1 parent 31aa17b9e5
commit cab781f9a4
4 files changed
+29 -3

No files matched your search

+2 -1
View File
@@ -109,7 +109,8 @@ static void _ftoa(float f, char *p, int *status)
else if (exp2 >= 0)
{
int_part = mantissa>>(23 - exp2);
frac_part = (mantissa<<(exp2 + 1))&0xFFFFFF;
// Only the low 24 bits are needed; shift unsigned to avoid signed overflow.
frac_part = (uint32_t(mantissa)<<(exp2 + 1))&0xFFFFFF;
}
else
{