[CC1101] The synchronization word is a two-byte value
This commit is contained in:
parent
10892340b6
commit
30d7a61013
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ int16_t CC1101::setOutputPower(int8_t power) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t CC1101::setSyncWord(uint8_t* syncWord, uint8_t len, uint8_t maxErrBits) {
|
int16_t CC1101::setSyncWord(uint8_t* syncWord, uint8_t len, uint8_t maxErrBits) {
|
||||||
if((maxErrBits > 1) || (len > 2)) {
|
if((maxErrBits > 1) || (len != 2)) {
|
||||||
return(ERR_INVALID_SYNC_WORD);
|
return(ERR_INVALID_SYNC_WORD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue