Firmware · UART

Parsing lines and frames

Turning a stream of serial bytes into commands means handling line endings, overlong lines and corrupted data, not only the happy case.