mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-10-23 14:32:22 +00:00
Keep Companion get radio compatible with upstream CSV
This commit is contained in:
1 parent
31aa17b9e5
commit
cab781f9a4
4 files changed
+29
-3
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user