Add snprintf_P stub
Port of https://github.com/arduino/Arduino/pull/4996
This commit is contained in:
parent
7bed794679
commit
470c21067f
1 changed files with 1 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ typedef const void* uint_farptr_t;
|
|||
#define memcmp_PF(s1, s2, n) memcmp((s1), (s2), (n))
|
||||
|
||||
#define sprintf_P(s, f, ...) sprintf((s), (f), __VA_ARGS__)
|
||||
#define snprintf_P(s, f, ...) snprintf((s), (f), __VA_ARGS__)
|
||||
|
||||
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
|
||||
#define pgm_read_word(addr) (*(const unsigned short *)(addr))
|
||||
|
|
|
|||
Loading…
Reference in a new issue