From eaafbd62faf72c8c71f4f69ee93f7dd923be6c9e Mon Sep 17 00:00:00 2001 From: Pawel Jalocha Date: Fri, 16 Oct 2020 00:18:06 +0100 Subject: [PATCH] Clear the AppKey by default --- main/parameters.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/parameters.h b/main/parameters.h index c2253bc..6bef14e 100644 --- a/main/parameters.h +++ b/main/parameters.h @@ -208,6 +208,9 @@ class FlashParameters FreqPlan = DEFAULT_FreqPlan; // [0..5] PPSdelay = DEFAULT_PPSdelay; // [ms] +#ifdef WITH_LORAWAN + for(uint8_t Idx=0; Idx<16; Idx++) AppKey[Idx]=0; +#endif #ifdef WITH_ENCRYPT for(uint8_t Idx=0; Idx<4; Idx++) EncryptKey[Idx]=0; #endif