Clear the AppKey by default

pull/30/head
Pawel Jalocha 2020-10-16 00:18:06 +01:00
rodzic e9167525ec
commit eaafbd62fa
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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