Merge pull request #77 from Guglio95/master

[CC1101] The synchronization word is a two-byte value
This commit is contained in:
Jan Gromeš 2019-11-30 17:25:03 +01:00 committed by GitHub
commit c78f783224
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
} }