From 77dc4c8ccfd7936658f3ecee8be72afe2e2d0818 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Sat, 24 Feb 2024 09:51:00 -0600 Subject: [PATCH 1/3] Docs: testRPD - Update the example code and return info for testRPD() #946 --- RF24.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RF24.h b/RF24.h index 381d6f11..5ea19152 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" ); + * 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); From e2e2fdc8b6e55d7ede58e69c3bf0e36f24b0637c Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Sat, 24 Feb 2024 15:57:35 -0600 Subject: [PATCH 2/3] Docs: Tweak info output for testRPD() Co-authored-by: Brendan <2bndy5@gmail.com> --- RF24.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RF24.h b/RF24.h index 5ea19152..d0ae1638 100644 --- a/RF24.h +++ b/RF24.h @@ -1277,7 +1277,7 @@ class RF24 * @code * bool goodSignal = radio.testRPD(); * if(radio.available()){ - * Serial.println(goodSignal ? "Strong signal > -64dBm" : "Weak or no signal < -64dBm" ); + * Serial.println(goodSignal ? "Strong signal > -64dBm" : "Weak or no signal (< -64dBm)" ); * radio.read(0,0); * } * @endcode From 609bab576cf588e8170c6faaf3d4920c7e46af47 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Sat, 24 Feb 2024 16:24:54 -0600 Subject: [PATCH 3/3] TestRPD: Adjust info output - Adjust info output - adjust call to radio.read() --- RF24.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RF24.h b/RF24.h index d0ae1638..4361b1f7 100644 --- a/RF24.h +++ b/RF24.h @@ -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,