Commit dfe5faca authored by Sandeep Mistry's avatar Sandeep Mistry

Clear RX buffer before receive

parent 5b9da76d
......@@ -326,6 +326,8 @@ void TwoWire::onService(void)
receiving = true;
rxBuffer.clear();
_p_twis->RXD.PTR = (uint32_t)rxBuffer._aucBuffer;
_p_twis->RXD.MAXCNT = sizeof(rxBuffer._aucBuffer);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment