MCPcopy Create free account
hub / github.com/PowerBroker2/SerialTransfer / reset

Method reset

src/Packet.cpp:437–444  ·  view source on GitHub ↗

void Packet::reset() Description: ------------ * Clears out the tx, and rx buffers, plus resets the "bytes read" variable, finite state machine, etc Inputs: ------- * void Return: ------- * void */

Source from the content-addressed store, hash-verified

435 * void
436*/
437void Packet::reset()
438{
439 memset(txBuff, 0, sizeof(txBuff));
440 memset(rxBuff, 0, sizeof(rxBuff));
441
442 bytesRead = 0;
443 packetStart = 0;
444}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected