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