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

Method reset

src/SerialTransfer.cpp:179–186  ·  view source on GitHub ↗

void SerialTransfer::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

177 * void
178*/
179void SerialTransfer::reset()
180{
181 while (port->available())
182 port->read();
183
184 packet.reset();
185 status = packet.status;
186}

Callers

nothing calls this directly

Calls 1

availableMethod · 0.80

Tested by

no test coverage detected