diff --git a/src/protocols/PhysicalLayer/PhysicalLayer.cpp b/src/protocols/PhysicalLayer/PhysicalLayer.cpp index 82d04910..722ee69f 100644 --- a/src/protocols/PhysicalLayer/PhysicalLayer.cpp +++ b/src/protocols/PhysicalLayer/PhysicalLayer.cpp @@ -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); }