mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-10 18:49:08 +00:00
Add printf macro as alias of xprintf
This commit is contained in:
parent
04c9501574
commit
d5ecbb83da
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,10 @@
|
||||||
#endif
|
#endif
|
||||||
#define println(s) print_P(PSTR(s "\n"))
|
#define println(s) print_P(PSTR(s "\n"))
|
||||||
|
|
||||||
|
#ifndef AVR_LIBC_PRINTF
|
||||||
|
#define printf(f, ...) xprintf(f, ##__VA_ARGS__)
|
||||||
|
#endif
|
||||||
|
|
||||||
/* for old name */
|
/* for old name */
|
||||||
#define pdec(data) print_dec(data)
|
#define pdec(data) print_dec(data)
|
||||||
#define pdec16(data) print_dec(data)
|
#define pdec16(data) print_dec(data)
|
||||||
|
|
Loading…
Reference in a new issue