From e20058c93cedc9086332c88aeb2b11204d7fd7c5 Mon Sep 17 00:00:00 2001 From: James Smith Date: Thu, 24 Mar 2022 10:30:45 -0700 Subject: [PATCH] [CC1101] Data shaping and encoding params in right order For some reason, the `RADIOLIB_SHAPING_NONE` was being passed to `setEncoding` and `RADIOLIB_ENCODING_NRZ` was being passed to `setDataShaping`. Flipped these to be passed to the correct functions. Note: These are both defined as `0x00` so this should have no impact on functionality, just makes initialization less confusing. --- src/modules/CC1101/CC1101.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/CC1101/CC1101.cpp b/src/modules/CC1101/CC1101.cpp index bf581fd5..98a2dadc 100644 --- a/src/modules/CC1101/CC1101.cpp +++ b/src/modules/CC1101/CC1101.cpp @@ -81,11 +81,11 @@ int16_t CC1101::begin(float freq, float br, float freqDev, float rxBw, int8_t po RADIOLIB_ASSERT(state); // set default data shaping - state = setDataShaping(RADIOLIB_ENCODING_NRZ); + state = setDataShaping(RADIOLIB_SHAPING_NONE); RADIOLIB_ASSERT(state); // set default encoding - state = setEncoding(RADIOLIB_SHAPING_NONE); + state = setEncoding(RADIOLIB_ENCODING_NRZ); RADIOLIB_ASSERT(state); // set default sync word