From 4dd30c872248a36bdec5cfb1306dad0feb1cc9b9 Mon Sep 17 00:00:00 2001 From: Raine Date: Sun, 15 Oct 2023 18:06:22 +0200 Subject: [PATCH] fix: logical errors --- doc/proto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/proto.md b/doc/proto.md index fb02a1e..66ed47d 100644 --- a/doc/proto.md +++ b/doc/proto.md @@ -20,7 +20,7 @@ Packets are sent in big endian. | `0x0D` | 4 bytes | `reply_to` | This describes what this packet is replying to, if initial message, value is `0x0` | `0x00000000` | | `0x11` | 1 byte | `command` | This describes what kind of command is sent | `0x00` | | `0x12` | 2 bytes | `data_length` | This describes the length of the data in bytes | `0x0001` | -| `0x14` | `<0x11-0x12:data_length>` | `data` | This is the data of the command | `0x00` | +| `0x14` | `<0x11-0x12:data_length>` | `data` | This is the data of the command | `0x0000` | | `0x14 + <0x11-0x12:data_length>` | 4 bytes | `checksum` | This is the CRC32 checksum of the packet without the checksum. | `0x00000000` | # Packets in practice