This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Somme issue on sprintf

Hello everyone,

I developed some small applications in C ++ on the Mbed Online compiler with the Mbed2 library.

For some reasons of use of online debugger I wanted to use Keil studio Online.
Simply my transfer and import of my project which works on Mbed Online Compiler works and not on Keil Studio.

My sprintf and printf functions do not work correctly when transforming floats. My sprintf function on my display returns %.2f in char instead of the value of my temperature.
This information goes to an LCD display using the I2C bus.
I upgrade mbed library to 6.15.1. I have no errror but a simple warning with (Conversion from string literal to 'char *' is deprecated).

The code works great on mbed online compiler.
I would like to know why? Do you have any leads?