moved synchronization word definition to the right place.
removed memcpy call for a two byte copy. also led to a relocation error in some versions of the mspgcc linker.
This commit is contained in:
parent
ce32792812
commit
aef32d8144
2 changed files with 5 additions and 4 deletions
|
@ -236,8 +236,6 @@ enum cc1020_state {
|
|||
* @{
|
||||
*/
|
||||
|
||||
const uint8_t syncword[2] = {0xD3,0x91};
|
||||
|
||||
// header: number of bytes in packet including header
|
||||
struct cc1020_header {
|
||||
uint8_t pad;
|
||||
|
@ -251,7 +249,7 @@ struct cc1020_header {
|
|||
#define PREAMBLE_SIZE 6
|
||||
#define PREAMBLE 0xAA
|
||||
|
||||
#define SYNCWORD_SIZE (sizeof (syncword))
|
||||
#define SYNCWORD_SIZE 2
|
||||
#define HDR_SIZE (sizeof (struct cc1020_header))
|
||||
|
||||
#define CRC_SIZE 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue