Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RPi/RF24/examples/gettingstarted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ TMRh20 2014 - Updated to work with optimized RF24 Arduino library
#include <sstream>
#include <string>
#include <RF24/RF24.h>
#include <unistd.h>

using namespace std;
//
Expand Down
1 change: 1 addition & 0 deletions RPi/RF24/examples/gettingstarted_call_response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ TMRh20 2014 - Updated to work with optimized RF24 Arduino library
#include <sstream>
#include <string>
#include <RF24/RF24.h>
#include <unistd.h>

using namespace std;

Expand Down
5 changes: 3 additions & 2 deletions RPi/RF24/examples/pingpair_dyn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ if (role == role_ping_out)
else
{
// Grab the response, compare, and send to debugging spew
uint8_t len = radio.getDynamicPayloadSize();
uint8_t len = 0;
len = radio.getDynamicPayloadSize();
radio.read( receive_payload, len );

// Put a zero at the end for easy printing
Expand Down Expand Up @@ -150,7 +151,7 @@ if (role == role_ping_out)
if ( radio.available() )
{
// Dump the payloads until we've gotten everything
uint8_t len;
uint8_t len = 0;

while (radio.available())
{
Expand Down
1 change: 1 addition & 0 deletions RPi/RF24/examples/transfer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ TMRh20 2014
#include <sstream>
#include <string>
#include <RF24/RF24.h>
#include <unistd.h>


using namespace std;
Expand Down