From 79fbe9be8e9924c86d595e00c16edc70e1ee5a28 Mon Sep 17 00:00:00 2001 From: Andrzej Perczak Date: Fri, 8 Dec 2023 18:34:21 +0100 Subject: [PATCH] LoRaWAN: Fix uninitialized variables --- src/protocols/LoRaWAN/LoRaWAN.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/LoRaWAN/LoRaWAN.h b/src/protocols/LoRaWAN/LoRaWAN.h index ee1d6b95..82960f53 100644 --- a/src/protocols/LoRaWAN/LoRaWAN.h +++ b/src/protocols/LoRaWAN/LoRaWAN.h @@ -350,7 +350,7 @@ class LoRaWANNode { public: // Offset between TX and RX1 (such that RX1 has equal or lower DR) - uint8_t rx1DrOffset; + uint8_t rx1DrOffset = 0; // RX2 channel properties - may be changed by MAC command LoRaWANChannel_t rx2; @@ -616,7 +616,7 @@ class LoRaWANNode { uint32_t adrFcnt = 0; // whether the current configured channel is in FSK mode - bool FSK; + bool FSK = false; // flag that shows whether the device is joined and there is an ongoing session bool isJoinedFlag = false;