summaryrefslogtreecommitdiff
path: root/common/print.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/print.h')
-rw-r--r--common/print.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/print.h b/common/print.h
index 930e84be99..a828328b6e 100644
--- a/common/print.h
+++ b/common/print.h
@@ -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)