mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-01-21 11:03:17 +00:00
E010r5: added flip, led and calib channels
This commit is contained in:
@@ -58,11 +58,12 @@ static void __attribute__((unused)) ssv_pack_dpl(uint8_t addr[], uint8_t pid, ui
|
||||
uint16_t val;
|
||||
} crc;
|
||||
|
||||
crc.val=0x3c18;
|
||||
crc=0x3c18;
|
||||
for (i = 0; i < 7; ++i)
|
||||
crc.val=crc16_update(crc.val,header[i],8);
|
||||
crc16_update(header[i],8);
|
||||
for (i = 0; i < *len; ++i)
|
||||
crc.val=crc16_update(crc.val,payload[i],8);
|
||||
crc16_update(payload[i],8);
|
||||
crc.val=crc;
|
||||
|
||||
// encode payload and crc
|
||||
// xor with this:
|
||||
|
||||
Reference in New Issue
Block a user