reset sonde info if configuration is changed (corrected), version update
This commit is contained in:
parent
b807c512e3
commit
4755c0ffca
|
|
@ -1,4 +1,4 @@
|
||||||
const char *version_name = "rdzTTGOsonde";
|
const char *version_name = "rdzTTGOsonde";
|
||||||
const char *version_id = "devel20210817";
|
const char *version_id = "devel20210905";
|
||||||
const int SPIFFS_MAJOR=2;
|
const int SPIFFS_MAJOR=2;
|
||||||
const int SPIFFS_MINOR=14;
|
const int SPIFFS_MINOR=14;
|
||||||
|
|
|
||||||
|
|
@ -453,8 +453,8 @@ void Sonde::addSonde(float frequency, SondeType type, int active, char *launchsi
|
||||||
}
|
}
|
||||||
Serial.printf("Adding %f - %d - %d - %s\n", frequency, type, active, launchsite);
|
Serial.printf("Adding %f - %d - %d - %s\n", frequency, type, active, launchsite);
|
||||||
// reset all data if type or frequency has changed
|
// reset all data if type or frequency has changed
|
||||||
if(type != sondeList[nSonde].type || frequency != sondeList[nSonde].frequency) {
|
if(type != sondeList[nSonde].type || frequency != sondeList[nSonde].freq) {
|
||||||
memset(sondeList[nSonde], 0, sizeof(SondeInfo));
|
memset(&sondeList[nSonde], 0, sizeof(SondeInfo));
|
||||||
}
|
}
|
||||||
sondeList[nSonde].type = type;
|
sondeList[nSonde].type = type;
|
||||||
sondeList[nSonde].typestr[0] = 0;
|
sondeList[nSonde].typestr[0] = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue