We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e0d872 commit a9991f4Copy full SHA for a9991f4
libraries/Wire/Wire.cpp
@@ -124,7 +124,6 @@ size_t arduino::MbedI2C::write(const uint8_t* data, int len) {
124
int arduino::MbedI2C::read() {
125
int rv = -1;
126
core_util_critical_section_enter();
127
-
128
if (rxBuffer.available()) {
129
130
rv = rxBuffer.read_char();
@@ -159,9 +158,7 @@ void arduino::MbedI2C::receiveThd() {
159
158
onRequestCb();
160
}
161
if (usedTxBuffer != 0) {
162
- core_util_critical_section_enter();
163
slave->write((const char *) txBuffer, usedTxBuffer);
164
- core_util_critical_section_exit();
165
usedTxBuffer = 0;
166
167
//slave->stop();
0 commit comments