Skip to content

Commit c1fe7c1

Browse files
authored
added printf header
1 parent 5fbe0c2 commit c1fe7c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: cores/arduino/Print.h

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ class Print
5757
size_t write(const char *buffer, size_t size) {
5858
return write((const uint8_t *)buffer, size);
5959
}
60+
61+
size_t printf(const char * format, ...) __attribute__ ((format (printf, 2, 3)));
6062

6163
// default to zero, meaning "a single write may block"
6264
// should be overridden by subclasses with buffering

0 commit comments

Comments
 (0)