From f36b4433a313258c7b721d0f47ed14a39b3c820d Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Thu, 19 Oct 2023 05:05:32 -0600 Subject: [PATCH 1/2] 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); From 619ae68f6ea23d083bf7809df103729985411cac Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Thu, 19 Oct 2023 04:17:19 -0700 Subject: [PATCH 2/2] Update examples/Network_Priority_RX/Network_Priority_RX.ino --- 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 5679020e..545a772a 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);