mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-10-23 10:42:39 +00:00
Merge pull request #3436 from Blake-Latchford/wio-e5-fix
WIO-E5 Fix: Pin Radiolab for stm32 and replace ltoa
This commit is contained in:
2 files changed
+10
-3
No files matched your search
@@ -27,8 +27,13 @@ bool StrHelper::isBlank(const char* str) {
|
||||
}
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <stdio.h>
|
||||
#if __has_include(<api/itoa.h>)
|
||||
// https://github.com/stm32duino/Arduino_Core_STM32/issues/3084
|
||||
#include <api/itoa.h>
|
||||
#endif
|
||||
|
||||
union int32_Float_t
|
||||
union int32_Float_t
|
||||
{
|
||||
int32_t Long;
|
||||
float Float;
|
||||
@@ -100,7 +105,7 @@ static void _ftoa(float f, char *p, int *status)
|
||||
*p++ = '-';
|
||||
if (int_part == 0)
|
||||
*p++ = '0';
|
||||
else
|
||||
else
|
||||
{
|
||||
ltoa(int_part, p, 10);
|
||||
while (*p)
|
||||
|
||||
Reference in new issue
Block a user