You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @RobTillaart ,
usually the flush() function is used to wait that all the data present in a buffer is transmitted/processed (see Serial.flush() ) and not to clear the rxBuffer.
That flush function you implemeted can be misleading if some user used other flush functions.
Missing in Wire lib is the flush() which can be quite straightforward.
maybe it should be called rxFlush() to allow a txFlush() in the future.
This allows one to flush the receive buffer e.g. after reading first byte which indicates the type of the answer.
The text was updated successfully, but these errors were encountered: