fix sh import

This commit is contained in:
Hansi, dl9rdz 2021-11-01 14:22:49 +01:00
parent 07859d7f70
commit e4df63e264
2 changed files with 2 additions and 3 deletions

View File

@ -124,13 +124,12 @@ int ShFreqImport::handleChar(char c) {
// wait for initial '{'
if(c=='{') {
Serial.println("{ found");
lat = NAN; lon = NAN; freq = NAN; *type = 0;
importState++;
}
break;
case BEFOREID:
// what for first '"' in { "A1234567" : { ... } }; or detect end
if(c=='"') { idpos = 0; importState++; }
if(c=='"') { idpos = 0; lat = NAN; lon = NAN; freq = NAN; *type = 0; importState++; }
if(c=='}') {
importState = ENDREACHED;
cleanup();

View File

@ -1,4 +1,4 @@
const char *version_name = "rdzTTGOsonde";
const char *version_id = "devel20211030";
const char *version_id = "devel20211031";
const int SPIFFS_MAJOR=2;
const int SPIFFS_MINOR=16;