From 066d79f21e5570251f4b7e56e14a3248200c0f05 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Wed, 12 Oct 2011 20:36:00 -0700 Subject: [PATCH] Flush all buffers on start and stop listening --- RF24.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RF24.cpp b/RF24.cpp index c919f56..c795f35 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -388,6 +388,7 @@ void RF24::startListening(void) // Flush buffers flush_rx(); + flush_tx(); // Go! ce(HIGH); @@ -401,6 +402,8 @@ void RF24::startListening(void) void RF24::stopListening(void) { ce(LOW); + flush_tx(); + flush_rx(); } /****************************************************************************/