We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa35aa7 commit 7a7839eCopy full SHA for 7a7839e
cpp/arduino/SPI.h
@@ -85,7 +85,7 @@ class SPIClass: public ObservableDataStream {
85
advertiseByte((char)data);
86
87
// pop bus->memory data from its queue and return it
88
- if (!dataIn->length()) return 0;
+ if (dataIn->empty()) return 0;
89
char ret = (*dataIn)[0];
90
*dataIn = dataIn->substr(1, dataIn->length());
91
return ret;
0 commit comments