[SX128x] Use const pointers where appropriate
This commit is contained in:
parent
be4ad51330
commit
1dcd61b71d
2 changed files with 2 additions and 2 deletions
|
@ -964,7 +964,7 @@ int16_t SX128x::setDataShaping(uint8_t sh) {
|
|||
}
|
||||
}
|
||||
|
||||
int16_t SX128x::setSyncWord(uint8_t* syncWord, uint8_t len) {
|
||||
int16_t SX128x::setSyncWord(const uint8_t* syncWord, uint8_t len) {
|
||||
// check active modem
|
||||
uint8_t modem = getPacketType();
|
||||
if(!((modem == RADIOLIB_SX128X_PACKET_TYPE_GFSK) || (modem == RADIOLIB_SX128X_PACKET_TYPE_FLRC))) {
|
||||
|
|
|
@ -666,7 +666,7 @@ class SX128x: public PhysicalLayer {
|
|||
\param len Sync word length in bytes.
|
||||
\returns \ref status_codes
|
||||
*/
|
||||
int16_t setSyncWord(uint8_t* syncWord, uint8_t len);
|
||||
int16_t setSyncWord(const uint8_t* syncWord, uint8_t len);
|
||||
|
||||
/*!
|
||||
\brief Sets LoRa sync word.
|
||||
|
|
Loading…
Add table
Reference in a new issue