Skip to content

Commit

Permalink
Update Network_Priority_RX.ino (#216)
Browse files Browse the repository at this point in the history
* Update Network_Priority_RX.ino

Added a necessary '='

* Update examples/Network_Priority_RX/Network_Priority_RX.ino

---------

Co-authored-by: Brendan <[email protected]>
  • Loading branch information
TMRh20 and 2bndy5 authored Oct 19, 2023
1 parent 2b3b000 commit 4e804ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/Network_Priority_RX/Network_Priority_RX.ino
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void loop() {
RF24NetworkHeader header; // Create an empty header
uint16_t dataSize = network.peek(header); // Peek to get the size of the data
uint32_t someVariable;
if (header.type = 32) { // If a certain header type is recieved
if (header.type == 32) { // If a certain header type is recieved
network.read(header, &someVariable, sizeof(someVariable)); // Handle the data a specific way
Serial.print(F("RX User Data:\nHeader Type "));
Serial.print(header.type);
Expand Down

0 comments on commit 4e804ee

Please sign in to comment.