[SX128x] Use const pointers where appropriate

This commit is contained in:
jgromes 2024-05-12 12:03:19 +01:00
parent be4ad51330
commit 1dcd61b71d
2 changed files with 2 additions and 2 deletions

View file

@ -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))) {

View file

@ -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.