kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
reset sonde info if configuration is changed (corrected), version update
rodzic
b807c512e3
commit
4755c0ffca
|
@ -1,4 +1,4 @@
|
|||
const char *version_name = "rdzTTGOsonde";
|
||||
const char *version_id = "devel20210817";
|
||||
const char *version_id = "devel20210905";
|
||||
const int SPIFFS_MAJOR=2;
|
||||
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);
|
||||
// reset all data if type or frequency has changed
|
||||
if(type != sondeList[nSonde].type || frequency != sondeList[nSonde].frequency) {
|
||||
memset(sondeList[nSonde], 0, sizeof(SondeInfo));
|
||||
if(type != sondeList[nSonde].type || frequency != sondeList[nSonde].freq) {
|
||||
memset(&sondeList[nSonde], 0, sizeof(SondeInfo));
|
||||
}
|
||||
sondeList[nSonde].type = type;
|
||||
sondeList[nSonde].typestr[0] = 0;
|
||||
|
|
Ładowanie…
Reference in New Issue