fix: logical errors

This commit is contained in:
Strix 2023-10-15 18:06:22 +02:00
parent 174a3739b5
commit 4dd30c8722
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -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` | | `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` | | `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` | | `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` | | `0x14 + <0x11-0x12:data_length>` | 4 bytes | `checksum` | This is the CRC32 checksum of the packet without the checksum. | `0x00000000` |
# Packets in practice # Packets in practice