From f36b4433a313258c7b721d0f47ed14a39b3c820d Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Thu, 19 Oct 2023 05:05:32 -0600 Subject: [PATCH] Update Network_Priority_RX.ino Added a necessary '=' --- examples/Network_Priority_RX/Network_Priority_RX.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Network_Priority_RX/Network_Priority_RX.ino b/examples/Network_Priority_RX/Network_Priority_RX.ino index bc4a482e..5679020e 100644 --- a/examples/Network_Priority_RX/Network_Priority_RX.ino +++ b/examples/Network_Priority_RX/Network_Priority_RX.ino @@ -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);