[CC1101] Fixed setPromiscuousMode(true) always failing

This commit is contained in:
jgromes 2023-01-14 23:20:27 +01:00
parent 2c8b63e038
commit 5b96340332

View file

@ -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);