mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 10:51:57 +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:
+3
-1
@@ -110,7 +110,9 @@ build_flags = ${arduino_base.build_flags}
|
|||||||
|
|
||||||
[stm32_base]
|
[stm32_base]
|
||||||
extends = arduino_base
|
extends = arduino_base
|
||||||
platform = ststm32
|
; Pinned pending upstream fix for upstream conversions.
|
||||||
|
; https://github.com/jgromes/RadioLib/issues/1873
|
||||||
|
platform = ststm32@19.7.1
|
||||||
extra_scripts = post:arch/stm32/build_hex.py
|
extra_scripts = post:arch/stm32/build_hex.py
|
||||||
build_flags = ${arduino_base.build_flags}
|
build_flags = ${arduino_base.build_flags}
|
||||||
-D STM32_PLATFORM
|
-D STM32_PLATFORM
|
||||||
|
|||||||
@@ -27,8 +27,13 @@ bool StrHelper::isBlank(const char* str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#include <Arduino.h>
|
#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;
|
int32_t Long;
|
||||||
float Float;
|
float Float;
|
||||||
@@ -100,7 +105,7 @@ static void _ftoa(float f, char *p, int *status)
|
|||||||
*p++ = '-';
|
*p++ = '-';
|
||||||
if (int_part == 0)
|
if (int_part == 0)
|
||||||
*p++ = '0';
|
*p++ = '0';
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ltoa(int_part, p, 10);
|
ltoa(int_part, p, 10);
|
||||||
while (*p)
|
while (*p)
|
||||||
|
|||||||
Reference in New Issue
Block a user