diff --git a/libraries/Wire/Wire.cpp b/libraries/Wire/Wire.cpp index 38c6f7e91..003a2897c 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 @@ -197,4 +198,4 @@ arduino::MbedI2C Wire1(I2C_SDA1, I2C_SCL1); #endif #if WIRE_HOWMANY > 2 arduino::MbedI2C Wire2(I2C_SDA2, I2C_SCL2); -#endif \ No newline at end of file +#endif
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: