kopia lustrzana https://github.com/pjalocha/esp32-ogn-tracker
Allow for empty string with <name>=<value>
rodzic
9fb2955a46
commit
486f09396b
|
@ -597,7 +597,7 @@ class FlashParameters
|
||||||
Line++; }
|
Line++; }
|
||||||
char *NameEnd=Line; // remember where the parameter name ends
|
char *NameEnd=Line; // remember where the parameter name ends
|
||||||
Line = (char *)SkipBlanks(Line); if((*Line)!='=') return 0; // next should be the equal sign
|
Line = (char *)SkipBlanks(Line); if((*Line)!='=') return 0; // next should be the equal sign
|
||||||
char *Value = (char *)SkipBlanks(Line+1); if((*Value)<=' ') return 0;
|
char *Value = (char *)SkipBlanks(Line+1); // if((*Value)<=' ') return 0;
|
||||||
*NameEnd=0; // put NULL character just after the parameter name
|
*NameEnd=0; // put NULL character just after the parameter name
|
||||||
return ReadParam(Name, Value); }
|
return ReadParam(Name, Value); }
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue