diff --git a/libraries/Wire/Wire.cpp b/libraries/Wire/Wire.cpp index 38c6f7e91..d860b94ac 100644 --- a/libraries/Wire/Wire.cpp +++ b/libraries/Wire/Wire.cpp @@ -136,6 +136,7 @@ int arduino::MbedI2C::peek() { } void arduino::MbedI2C::flush() { + rxBuffer.clear(); } #ifdef DEVICE_I2CSLAVE