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 b3d724c commit b787982Copy full SHA for b787982
hardware/arduino/cores/arduino/Print.h
@@ -46,7 +46,10 @@ class Print
46
void clearWriteError() { setWriteError(0); }
47
48
virtual size_t write(uint8_t) = 0;
49
- size_t write(const char *str) { return write((const uint8_t *)str, strlen(str)); }
+ size_t write(const char *str) {
50
+ if (str == NULL) return 0;
51
+ return write((const uint8_t *)str, strlen(str));
52
+ }
53
virtual size_t write(const uint8_t *buffer, size_t size);
54
55
size_t print(const __FlashStringHelper *);
0 commit comments