Tolerate 0x or absence of it for AppKey parameter

pull/39/head
Pawel Jalocha 2021-05-25 00:13:02 +01:00
rodzic 65af9a6a38
commit 55792f6c1e
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -672,7 +672,8 @@ uint16_t StratuxPort;
Verbose=Mode; return 1; }
#ifdef WITH_LORAWAN
if(strcmp(Name, "AppKey")==0)
{ for(uint8_t Idx=0; Idx<16; Idx++)
{ if(Value[0]=='0' && Value[1]=='x') Value+=2;
for(uint8_t Idx=0; Idx<16; Idx++)
{ uint8_t Byte;
uint8_t Len=Read_Hex(Byte, Value);
if(Len!=2) break;