Skip to content

Commit 12dd52f

Browse files
committed
Added include to provide dtostrf function
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 927fdc5 commit 12dd52f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Diff for: cores/arduino/avr/dtostrf.h

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
License along with this library; if not, write to the Free Software
1818
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1919
*/
20+
#ifndef __DTOSTRF_H_
21+
#define __DTOSTRF_H_ 1
2022

2123
#ifdef __cplusplus
2224
extern "C" {
@@ -27,3 +29,5 @@ char *dtostrf (double val, signed char width, unsigned char prec, char *sout);
2729
#ifdef __cplusplus
2830
}
2931
#endif
32+
33+
#endif

Diff for: cores/arduino/utils.h

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#ifndef __UTILS_H
2323
#define __UTILS_H
2424

25+
#include "avr/dtostrf.h"
26+
2527
// Concatenate 2 strings
2628
#define CONCAT(s1, s2) (s1 s2)
2729
// Concatenate 2 strings separated by space

0 commit comments

Comments
 (0)