Skip to content

Commit 42b95ba

Browse files
committed
ensure radio is not stuck with CONT_WAVE flag asserted after MCU reset
1 parent aa9c670 commit 42b95ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/scanner/scanner.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ void setup(void) {
9191
// hold in an infinite loop
9292
}
9393
}
94+
radio.stopConstCarrier(); // in case MCU was reset while radio was emitting carrier wave
9495
radio.setAutoAck(false); // Don't acknowledge arbitrary signals
9596
radio.disableCRC(); // Accept any signal we find
9697
radio.setAddressWidth(2); // A reverse engineering tactic (not typically recommended)

0 commit comments

Comments
 (0)