We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
stopConstCarrier()
1 parent 79ea02d commit 6061761Copy full SHA for 6061761
RF24.cpp
@@ -2048,6 +2048,11 @@ void RF24::stopConstCarrier()
2048
powerDown(); // per datasheet recommendation (just to be safe)
2049
write_register(RF_SETUP, static_cast<uint8_t>(read_register(RF_SETUP) & ~_BV(CONT_WAVE) & ~_BV(PLL_LOCK)));
2050
ce(LOW);
2051
+ flush_tx();
2052
+ if (isPVariant()) {
2053
+ // restore the cached TX address
2054
+ write_register(TX_ADDR, pipe0_writing_address, addr_width);
2055
+ }
2056
}
2057
2058
/****************************************************************************/
0 commit comments