Skip to content

Commit

Permalink
TestRPD: Adjust info output
Browse files Browse the repository at this point in the history
- Adjust info output
- adjust call to radio.read()
  • Loading branch information
TMRh20 committed Feb 24, 2024
1 parent e2e2fdc commit 609bab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RF24.h
Original file line number Diff line number Diff line change
Expand Up @@ -1277,8 +1277,8 @@ class RF24
* @code
* bool goodSignal = radio.testRPD();
* if(radio.available()){
* Serial.println(goodSignal ? "Strong signal > -64dBm" : "Weak or no signal (< -64dBm)" );
* radio.read(0,0);
* Serial.println(goodSignal ? "Strong signal > -64dBm" : "Weak signal < -64dBm" );
* radio.read(&payload,sizeof(payload));
* }
* @endcode
* @return true if a signal greater than or equal to -64dBm was detected,
Expand Down

0 comments on commit 609bab5

Please sign in to comment.