From 4e804ee5c1479e6ef51d8279eae880c5d367e6e7 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Thu, 19 Oct 2023 05:26:18 -0600 Subject: [PATCH] Update Network_Priority_RX.ino (#216) * Update Network_Priority_RX.ino Added a necessary '=' * Update examples/Network_Priority_RX/Network_Priority_RX.ino --------- Co-authored-by: Brendan <2bndy5@gmail.com> --- 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..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);