Skip to content

Commit

Permalink
Docs: testRPD
Browse files Browse the repository at this point in the history
- Update the example code and return info for testRPD()
#946
  • Loading branch information
TMRh20 committed Feb 24, 2024
1 parent 881473a commit 77dc4c8
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,11 +1277,11 @@ class RF24
* @code
* bool goodSignal = radio.testRPD();
* if(radio.available()){
* Serial.println(goodSignal ? "Strong signal > 64dBm" : "Weak signal < 64dBm" );
* Serial.println(goodSignal ? "Strong signal > -64dBm" : "Weak or no signal < -64dBm" );
* radio.read(0,0);
* }
* @endcode
* @return true if a signal less than or equal to -64dBm was detected,
* @return true if a signal greater than or equal to -64dBm was detected,
* false if not.
*/
bool testRPD(void);
Expand Down

0 comments on commit 77dc4c8

Please sign in to comment.