From fe13236b8986dab150ddc488ef86de30862e333d Mon Sep 17 00:00:00 2001 From: Domenic Rodriguez Date: Thu, 11 Apr 2019 12:04:35 -0400 Subject: [PATCH] Corrected the native protocol stream format docs The packet length field is currently only one byte, not two. --- docs/protocol.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/protocol.md b/docs/protocol.md index f916b1fe..6e8809d6 100644 --- a/docs/protocol.md +++ b/docs/protocol.md @@ -59,10 +59,10 @@ __Response__ The stream based format is just a wrapper for the packet format. - __Byte 0__ Sync byte `0xAA` - - __Bytes 1, 2__ Packet length + - __Byte 1__ Packet length - Currently both parties shall only emit and accept values of 0 through 127. - - __Bytes 3__ CRC8 of bytes 0 through 2 + - __Byte 2__ CRC8 of bytes 0 and 1 - See protocol.hpp for CRC details. - - __Bytes 4 to N-3__ Packet + - __Bytes 3 to N-3__ Packet - __Bytes N-2, N-1__ CRC16 - See protocol.hpp for CRC details.