mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
major bugfix: padding synch with zero
This commit is contained in:
parent
abb2731ed7
commit
d0997c2dab
@ -238,6 +238,7 @@ const uint8_t syncword[2] = {0xD3,0x91};
|
||||
|
||||
// header: number of bytes in packet including header
|
||||
struct cc1020_header {
|
||||
uint8_t pad;
|
||||
uint8_t length;
|
||||
} __attribute__((packed));
|
||||
|
||||
|
@ -224,6 +224,7 @@ cc1020_send(const void *buf, unsigned short len)
|
||||
cc1020_txlen = PREAMBLESIZE + SYNCWDSIZE;
|
||||
|
||||
// header
|
||||
cc1020_txbuf[cc1020_txlen++] = 0x00;
|
||||
cc1020_txbuf[cc1020_txlen++] = HDRSIZE + len;
|
||||
|
||||
// data to send
|
||||
|
Loading…
Reference in New Issue
Block a user