From efdc40aaefffd5001a86724328a1f1e31dc6e280 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Sun, 25 Feb 2024 00:41:41 -0600 Subject: [PATCH] Docs: testRPD (#948) * Docs: testRPD - Update the example code and return info for testRPD() #946 * Docs: Tweak info output for testRPD() --------- Co-authored-by: Brendan <2bndy5@gmail.com> --- RF24.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RF24.h b/RF24.h index 381d6f11..4361b1f7 100644 --- a/RF24.h +++ b/RF24.h @@ -1277,11 +1277,11 @@ class RF24 * @code * bool goodSignal = radio.testRPD(); * if(radio.available()){ - * Serial.println(goodSignal ? "Strong signal > 64dBm" : "Weak 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 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);