[PHY] Disable shaping in startDirect

This commit is contained in:
jgromes 2021-02-13 17:43:28 +01:00
parent 0a44fa065d
commit 7ecd56d2ca

View file

@ -170,10 +170,14 @@ int32_t PhysicalLayer::random(int32_t min, int32_t max) {
int16_t PhysicalLayer::startDirect() {
// disable encodings
int16_t state = setEncoding(0);
int16_t state = setEncoding(RADIOLIB_ENCODING_NRZ);
RADIOLIB_ASSERT(state);
// disable shaping
state = setDataShaping(RADIOLIB_SHAPING_NONE);
RADIOLIB_ASSERT(state);
// set frequency deviation to the lowest possible value
state = setFrequencyDeviation(0);
state = setFrequencyDeviation(-1);
return(state);
}