Skip to content

Commit 93b8435

Browse files
committed
Wire: handle NoData case
1 parent 42e17b0 commit 93b8435

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/Wire/Wire.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ void arduino::MbedI2C::receiveThd() {
151151
}
152152
slave->stop();
153153
break;
154+
case mbed::I2CSlave::NoData:
155+
yield();
154156
}
155157
}
156158
}

0 commit comments

Comments
 (0)