mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
Include stdio.h in dtostrf.c
This makes the declaration of sprintf available, so the function is not implicitely declared, which triggers two compiler warnings. This helps towards #1792
This commit is contained in:
parent
8e35973ff9
commit
1c6a57e15d
@ -18,6 +18,8 @@
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
char *dtostrf (double val, signed char width, unsigned char prec, char *sout) {
|
||||
char fmt[20];
|
||||
sprintf(fmt, "%%%d.%df", width, prec);
|
||||
|
Loading…
x
Reference in New Issue
Block a user