[SX127x] Explicitly enabled CRC (#706)

pull/711/head
jgromes 2023-03-23 19:06:43 +01:00
rodzic 48d49aabba
commit c3de8b9099
2 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -29,6 +29,10 @@ int16_t SX1272::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t sync
state = setGain(gain);
RADIOLIB_ASSERT(state);
// set publicly accessible settings that are not a part of begin method
state = setCRC(true);
RADIOLIB_ASSERT(state);
return(state);
}
@ -56,6 +60,10 @@ int16_t SX1272::beginFSK(float freq, float br, float freqDev, float rxBw, int8_t
RADIOLIB_ASSERT(state);
}
// set publicly accessible settings that are not a part of begin method
state = setCRC(true);
RADIOLIB_ASSERT(state);
return(state);
}

Wyświetl plik

@ -29,6 +29,10 @@ int16_t SX1278::begin(float freq, float bw, uint8_t sf, uint8_t cr, uint8_t sync
state = setGain(gain);
RADIOLIB_ASSERT(state);
// set publicly accessible settings that are not a part of begin method
state = setCRC(true);
RADIOLIB_ASSERT(state);
return(state);
}
@ -56,6 +60,10 @@ int16_t SX1278::beginFSK(float freq, float br, float freqDev, float rxBw, int8_t
RADIOLIB_ASSERT(state);
}
// set publicly accessible settings that are not a part of begin method
state = setCRC(true);
RADIOLIB_ASSERT(state);
return(state);
}