Skip to content

Commit c80a125

Browse files
committed
Change to CAD after going to STANDBY
Contrary to the data sheet, it's not possible to change to CAD mode from e.g. RXSINGLE. Going to STANDBY first makes it happen.
1 parent cd09927 commit c80a125

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/LoRa.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ void LoRaClass::sleep()
306306

307307
void LoRaClass::cad()
308308
{
309+
idle();
309310
writeRegister(REG_OP_MODE, MODE_LONG_RANGE_MODE | MODE_CAD);
310311
}
311312

0 commit comments

Comments
 (0)