1
0

Add printf macro as alias of xprintf

This commit is contained in:
tmk 2013-11-25 17:39:45 +09:00
parent 2cec799626
commit 06681b0ab9

View File

@ -40,6 +40,10 @@
#endif
#define println(s) print_P(PSTR(s "\n"))
#ifndef AVR_LIBC_PRINTF
#define printf(f, ...) xprintf(f, ##__VA_ARGS__)
#endif
/* for old name */
#define pdec(data) print_dec(data)
#define pdec16(data) print_dec(data)