[RF69] Remove redundant sync word length caching

pull/1474/head
jgromes 2025-03-08 13:09:54 +01:00
rodzic 1b62bc3208
commit d526ac3091
2 zmienionych plików z 0 dodań i 6 usunięć

Wyświetl plik

@ -716,10 +716,6 @@ int16_t RF69::setSyncWord(const uint8_t* syncWord, size_t len, uint8_t maxErrBit
// set sync word register
this->mod->SPIwriteRegisterBurst(RADIOLIB_RF69_REG_SYNC_VALUE_1, syncWord, len);
if(state == RADIOLIB_ERR_NONE) {
this->syncWordLength = len-1;
}
return(state);
}

Wyświetl plik

@ -1031,8 +1031,6 @@ class RF69: public PhysicalLayer {
bool promiscuous = false;
uint8_t syncWordLength = RADIOLIB_RF69_DEFAULT_SW_LEN;
bool bitSync = true;
int16_t directMode();