From 1e6cdf22f091e6989f868bb612b1f4c4fa96c295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Wed, 27 Dec 2017 19:26:08 +0100 Subject: [PATCH] remove lies from readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 83f86cc..80d3140 100644 --- a/README.md +++ b/README.md @@ -42,10 +42,10 @@ length field if your payloads are 20 bytes long, using a 1-byte field (`uint8_t` 3 bytes. This may be significant if you need high throughput. ``` -,-----+-----+-----+------+------------+- - - -+-------------, -| SOF | ID | LEN | TYPE | HEAD_CKSUM | DATA | DATA_CKSUM | +,-----+-----+-----+------+------------+- - - -+-------------, +| SOF | ID | LEN | TYPE | HEAD_CKSUM | DATA | DATA_CKSUM | | 0-1 | 1-4 | 1-4 | 1-4 | 0-4 | ... | 0-4 | <- size (bytes) -'-----+-----+-----+------+------------+- - - -+-------------' +'-----+-----+-----+------+------------+- - - -+-------------' SOF ......... start of frame, usually 0x01 (optional, configurable) ID ......... the frame ID (MSb is the peer bit) @@ -54,7 +54,7 @@ TYPE ........ message type (used to run Type Listeners, pick any values you like HEAD_CKSUM .. header checksum DATA ........ LEN bytes of data (can be 0, in which case DATA_CKSUM is omitted as well) -DATA_CKSUM .. checksum, implemented as XOR of all preceding bytes in the message +DATA_CKSUM .. data checksum ``` ## Usage Hints