From 5b963403327bb724e6db087f2d8f27cfd199015a Mon Sep 17 00:00:00 2001 From: jgromes Date: Sat, 14 Jan 2023 23:20:27 +0100 Subject: [PATCH] [CC1101] Fixed setPromiscuousMode(true) always failing --- src/modules/CC1101/CC1101.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/CC1101/CC1101.cpp b/src/modules/CC1101/CC1101.cpp index 8ad06742..72824fce 100644 --- a/src/modules/CC1101/CC1101.cpp +++ b/src/modules/CC1101/CC1101.cpp @@ -824,11 +824,8 @@ int16_t CC1101::setPromiscuousMode(bool promiscuous) { } if (promiscuous == true) { - // disable preamble detection and generation - state = setPreambleLength(0); - RADIOLIB_ASSERT(state); - // disable sync word filtering and insertion + // this also disables preamble state = disableSyncWordFiltering(); RADIOLIB_ASSERT(state);