Skip to content

Commit 230c7ca

Browse files
committed
[SX126x] Remove setSyncBits method (#1633)
1 parent 0273939 commit 230c7ca

3 files changed

Lines changed: 0 additions & 29 deletions

File tree

keywords.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ getTimeOnAir KEYWORD2
234234
calculateTimeOnAir KEYWORD2
235235
implicitHeader KEYWORD2
236236
explicitHeader KEYWORD2
237-
setSyncBits KEYWORD2
238237
setWhitening KEYWORD2
239238
startReceiveDutyCycle KEYWORD2
240239
startReceiveDutyCycleAuto KEYWORD2

src/modules/SX126x/SX126x.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -472,15 +472,6 @@ class SX126x: public PhysicalLayer {
472472
*/
473473
int16_t setSyncWord(uint8_t* syncWord, size_t len) override;
474474

475-
/*!
476-
\brief Sets FSK sync word in the form of array of up to 8 bytes.
477-
\param syncWord FSK sync word to be set.
478-
\param bitsLen FSK sync word length in bits. If length is not divisible by 8,
479-
least significant bits of syncWord will be ignored.
480-
\returns \ref status_codes
481-
*/
482-
int16_t setSyncBits(uint8_t *syncWord, uint8_t bitsLen);
483-
484475
/*!
485476
\brief Sets CRC configuration.
486477
\param len CRC length in bytes, Allowed values are 1 or 2, set to 0 to disable CRC.

src/modules/SX126x/SX126x_config.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -487,25 +487,6 @@ int16_t SX126x::setSyncWord(uint8_t* syncWord, size_t len) {
487487
return(RADIOLIB_ERR_WRONG_MODEM);
488488
}
489489

490-
int16_t SX126x::setSyncBits(uint8_t *syncWord, uint8_t bitsLen) {
491-
// check active modem
492-
if(getPacketType() != RADIOLIB_SX126X_PACKET_TYPE_GFSK) {
493-
return(RADIOLIB_ERR_WRONG_MODEM);
494-
}
495-
496-
// check sync word Length
497-
if(bitsLen > 0x40) {
498-
return(RADIOLIB_ERR_INVALID_SYNC_WORD);
499-
}
500-
501-
uint8_t bytesLen = bitsLen / 8;
502-
if ((bitsLen % 8) != 0) {
503-
bytesLen++;
504-
}
505-
506-
return(setSyncWord(syncWord, bytesLen));
507-
}
508-
509490
int16_t SX126x::setCRC(uint8_t len, uint16_t initial, uint16_t polynomial, bool inverted) {
510491
// check active modem
511492
uint8_t modem = getPacketType();

0 commit comments

Comments
 (0)