We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 939a22d commit bba50c7Copy full SHA for bba50c7
1 file changed
libraries/Wire/Wire.cpp
@@ -69,6 +69,9 @@ size_t arduino::ZephyrI2C::requestFrom(uint8_t address, size_t len) { // TODO fo
69
}
70
71
size_t arduino::ZephyrI2C::write(uint8_t data) { // TODO for ADS1115
72
+ if (usedTxBuffer >= sizeof(txBuffer)) {
73
+ return 0;
74
+ }
75
txBuffer[usedTxBuffer++] = data;
76
return 1;
77
0 commit comments