From 4bbcc8dee2f665379f7fe710e154fac1f573efc3 Mon Sep 17 00:00:00 2001 From: watershade Date: Fri, 24 Nov 2023 10:25:27 +0800 Subject: [PATCH] #Add 1. implement flush of wire. (flush functions have never been implemented before. But it is useful.) --- libraries/Wire/Wire.cpp | 1 + 1 file changed, 1 insertion(+) 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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy