[CC1101] Fixed setPromiscuousMode(true) always failing
This commit is contained in:
parent
2c8b63e038
commit
5b96340332
1 changed files with 1 additions and 4 deletions
|
@ -824,11 +824,8 @@ int16_t CC1101::setPromiscuousMode(bool promiscuous) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (promiscuous == true) {
|
if (promiscuous == true) {
|
||||||
// disable preamble detection and generation
|
|
||||||
state = setPreambleLength(0);
|
|
||||||
RADIOLIB_ASSERT(state);
|
|
||||||
|
|
||||||
// disable sync word filtering and insertion
|
// disable sync word filtering and insertion
|
||||||
|
// this also disables preamble
|
||||||
state = disableSyncWordFiltering();
|
state = disableSyncWordFiltering();
|
||||||
RADIOLIB_ASSERT(state);
|
RADIOLIB_ASSERT(state);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue