[SX126x] Remove copypate from setSyncBits
This commit is contained in:
parent
8a4514703b
commit
2f06885f9f
1 changed files with 1 additions and 9 deletions
|
@ -1174,15 +1174,7 @@ int16_t SX126x::setSyncBits(uint8_t *syncWord, uint8_t bitsLen) {
|
||||||
bytesLen++;
|
bytesLen++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// write sync word
|
return(setSyncWord(syncWord, bytesLen));
|
||||||
int16_t state = writeRegister(RADIOLIB_SX126X_REG_SYNC_WORD_0, syncWord, bytesLen);
|
|
||||||
RADIOLIB_ASSERT(state);
|
|
||||||
|
|
||||||
// update packet parameters
|
|
||||||
this->syncWordLength = bitsLen;
|
|
||||||
state = setPacketParamsFSK(this->preambleLengthFSK, this->crcTypeFSK, this->syncWordLength, this->addrComp, this->whitening, this->packetType);
|
|
||||||
|
|
||||||
return(state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t SX126x::setNodeAddress(uint8_t nodeAddr) {
|
int16_t SX126x::setNodeAddress(uint8_t nodeAddr) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue