diff --git a/RX_FSK/version.h b/RX_FSK/version.h index 2aef016..eae4680 100644 --- a/RX_FSK/version.h +++ b/RX_FSK/version.h @@ -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; diff --git a/libraries/SondeLib/Sonde.cpp b/libraries/SondeLib/Sonde.cpp index 1bbfef8..5e9af67 100644 --- a/libraries/SondeLib/Sonde.cpp +++ b/libraries/SondeLib/Sonde.cpp @@ -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;