crsf-wg / crsf

MIT License
114 stars 7 forks source link

Fix Set ReceiverID example #10

Closed boris-gu closed 5 months ago

boris-gu commented 6 months ago

https://github.com/crsf-wg/crsf/wiki/CRSF_FRAMETYPE_COMMAND#command_model_select_id

The example shows this package:
c8 09 32 ee ea 10 05 14 crc-ba crc
The length (pkt[1]) is 9 bytes. But in reality there should be 8 bytes: [32 ee ea 10 05 14 crc-ba crc]

I checked this command by connecting to my rс. The result confirmed that there is an mistake in the wiki:
c8 08 32 ee ea 10 05 36 26 a0

CapnBry commented 5 months ago

Ah you're right, thanks! That's what happens when I try to make up an example on the fly. 😳 I've updated the page with your example instead, and added more info about the extra CRC as well.