From 7ecd56d2caef3a8d7c4009f0ecc55dbc8b16829d Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 13 Feb 2021 17:43:28 +0100 Subject: [PATCH] [PHY] Disable shaping in startDirect --- src/protocols/PhysicalLayer/PhysicalLayer.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); }