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 046de9b commit e40e387Copy full SHA for e40e387
cores/arduino/Print.h
@@ -56,6 +56,10 @@ class Print
56
return write((const uint8_t *)buffer, size);
57
}
58
59
+ // default to zero, meaning "a single write may block"
60
+ // should be overriden by subclasses with buffering
61
+ virtual int availableForWrite() { return 0; }
62
+
63
size_t print(const __FlashStringHelper *);
64
size_t print(const String &);
65
size_t print(const char[]);
@@ -82,6 +86,8 @@ class Print
82
86
size_t println(void);
83
87
84
88
void printf(const char[], ...);
89
90
+ virtual void flush() { /* Empty implementation for backward compatibility */ }
85
91
};
92
93
#endif
0 commit comments