Keep STM32 text conversion compatible with current Arduino cores

This commit is contained in:
mikecarper committed 2026-09-13 17:24:56 -07:00
1 parent 0938da5ea6
commit d4a641ff8a
3 files changed
+56

No files matched your search

+6
View File
@@ -118,7 +118,13 @@ static void _ftoa(float f, char *p, int *status)
*p++ = '0';
else
{
#if defined(STM32_PLATFORM)
// STM32 Arduino exposes utoa, but recent cores no longer declare ltoa.
// The sign was emitted above and this magnitude fits a 32-bit unsigned int.
utoa(static_cast<unsigned int>(int_part), p, 10);
#else
ltoa(int_part, p, 10);
#endif
while (*p)
p++;
}