rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.49k stars 1.25k forks source link

Empty string when using the sprinft() for float variables. #900

Closed sergey3778 closed 1 year ago

sergey3778 commented 1 year ago

Hi. I got a problem while using the function sprintf(), when I was trying to output a float variable. The problem first appeared after using the dtostrf() function. If I add a float variable, I get an empty string as a result. Variables of type int are fine. As soon as the identifier "f" or "lf" appears in the arguments of the sprintf() function, after that sprintf() returns an empty string. I am using the Arduino_STM32-master library in the Arduino IDE 2.0.3. Board type STM32F4VE. Help me please. The third day, nothing happens.

rogerclarkmelbourne commented 1 year ago

Post to https://www.stm32duino.com/