Parcourir la source

Add printf macro as alias of xprintf

tags/v1.9
tmk il y a 10 ans
Parent
révision
d5ecbb83da
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4
    0
      common/print.h

+ 4
- 0
common/print.h Voir le fichier

@@ -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)

Chargement…
Annuler
Enregistrer