Skip to content

Commit

Permalink
Merge pull request #714 from rnpnr/vprintf
Browse files Browse the repository at this point in the history
add Print::vprintf() to teensy and teensy3
  • Loading branch information
PaulStoffregen committed Aug 29, 2023
2 parents 21b5c48 + a73a876 commit 6d091ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions teensy/Print.h
Expand Up @@ -101,6 +101,7 @@ class Print
void clearWriteError() { setWriteError(0); }
int printf(const char *format, ...);
int printf(const __FlashStringHelper *format, ...);
int vprintf(const char *format, va_list ap) { return vdprintf((int)this, format, ap); }
protected:
void setWriteError(int err = 1) { write_error = err; }
private:
Expand Down
1 change: 1 addition & 0 deletions teensy3/Print.h
Expand Up @@ -115,6 +115,7 @@ class Print
// https://forum.pjrc.com/threads/62473?p=256873&viewfull=1#post256873
int printf(const char *format, ...) /*__attribute__ ((format (printf, 2, 3)))*/;
int printf(const __FlashStringHelper *format, ...);
int vprintf(const char *format, va_list ap) { return vdprintf((int)this, format, ap); }
protected:
void setWriteError(int err = 1) { write_error = err; }
private:
Expand Down

0 comments on commit 6d091ca

Please sign in to comment.