[SX128x] Add missing const cast

This commit is contained in:
jgromes 2025-03-04 08:10:09 +01:00
parent 08e0c0e613
commit d605bc2058

View file

@ -997,7 +997,7 @@ int16_t SX128x::setSyncWord(const uint8_t* syncWord, uint8_t len) {
}
// update sync word
int16_t state = SX128x::writeRegister(RADIOLIB_SX128X_REG_SYNC_WORD_1_BYTE_4, syncWord, len);
int16_t state = SX128x::writeRegister(RADIOLIB_SX128X_REG_SYNC_WORD_1_BYTE_4, const_cast<uint8_t*>(syncWord), len);
RADIOLIB_ASSERT(state);
// update packet parameters