Open mscharrer-ask opened 23 hours ago
Hi @mscharrer-ask! We appreciate you submitting your first issue for our open-source project. 🌟
Even though I'm a bot, I can assure you that the whole community is genuinely grateful for your time and effort. 🤖💙
Describe the bug
The byte offsets of the SMP header are displayed in an confusing way which strikes me as incorrect. The first row of the header table "3, 2, 1, 0" should be in the opposite order "0, 1, 2, 3".
According to the description further below and the actual implementation of struct smp_hdr the first byte (
#0
) contains Res, Version and OP, but the table shows that as byte#3
in the first row / table header. Flags is the second byte (#1
) but shown as the third (#2
), etc.The fix would be to swap the order of the first row. Also the description table could also include byte offsets for clarity.
Environment
services/device_mgmt/smp_protocol