This commit is contained in:
Kevin Le committed 2026-09-17 20:32:08 +07:00
1 parent 9c728e6b64
commit 8073a9db25
2 files changed
+9 -1

No files matched your search

+8 -1
View File
@@ -102,9 +102,16 @@ static void _ftoa(float f, char *p, int *status)
*p++ = '0';
else
{
ltoa(int_part, p, 10);
#if defined(STM32_PLATFORM)
int written = snprintf(p, 16, "%" PRId32, int_part);
if (written > 0) {
p += written;
}
#else
ltoa(int_part, p, 10);
while (*p)
p++;
#endif
}
*p++ = '.';
if (frac_part == 0)