We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 278334f commit ecb12faCopy full SHA for ecb12fa
Print.h
@@ -44,10 +44,10 @@ class Print
44
void setWriteError(int err = 1) { write_error = err; }
45
public:
46
Print() : write_error(0) {}
47
-
+
48
int getWriteError() { return write_error; }
49
void clearWriteError() { setWriteError(0); }
50
51
virtual size_t write(uint8_t) = 0;
52
size_t write(const char *str) {
53
if (str == NULL) return 0;
@@ -88,8 +88,8 @@ class Print
88
size_t println(double, int = 2);
89
size_t println(const Printable&);
90
size_t println(void);
91
92
- int16_t printf(const char *format, ...);
+ int16_t printf(const char *format, ...) __attribute__ ((format (printf, 2, 3)));
93
int16_t printf(const __FlashStringHelper *format, ...);
94
};
95
0 commit comments