瀏覽代碼

Add printf macro as alias of xprintf

keymap_in_eeprom
tmk 10 年之前
父節點
當前提交
d5ecbb83da
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      common/print.h

+ 4
- 0
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)