Skip to content

Commit

Permalink
Update Network_Priority_RX.ino
Browse files Browse the repository at this point in the history
Added a necessary '='
  • Loading branch information
TMRh20 authored Oct 19, 2023
1 parent 2b3b000 commit f36b443
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 f36b443

Please sign in to comment.