kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
typo--
rodzic
69062ac856
commit
c64651f36b
|
@ -90,7 +90,7 @@ void ShFreqImport::populate(char *id, float lat, float lon, float freq, const ch
|
||||||
return;
|
return;
|
||||||
} // no more free slots
|
} // no more free slots
|
||||||
|
|
||||||
sonde.clearAllData(&sondeList[ppos]);
|
sonde.clearAllData(&sonde.sondeList[ppos]);
|
||||||
sonde.sondeList[ppos].active = 1;
|
sonde.sondeList[ppos].active = 1;
|
||||||
sonde.sondeList[ppos].freq = freq;
|
sonde.sondeList[ppos].freq = freq;
|
||||||
sonde.sondeList[ppos].type = (SondeType)stype;
|
sonde.sondeList[ppos].type = (SondeType)stype;
|
||||||
|
|
|
@ -676,7 +676,7 @@ void Sonde::clearAllData(SondeInfo *si) {
|
||||||
memset(&(si->d), 0, sizeof(SondeData));
|
memset(&(si->d), 0, sizeof(SondeData));
|
||||||
// set floats to NaN
|
// set floats to NaN
|
||||||
si->d.lat = si->d.lon = si->d.alt = si->d.vs = si->d.hs = si->d.dir = NAN;
|
si->d.lat = si->d.lon = si->d.alt = si->d.vs = si->d.hs = si->d.dir = NAN;
|
||||||
si->d.temperature = si->d.tempRHSensor = si->d.relativeHumidity = si->d.pressures = si->d.batteryVoltage = NAN;
|
si->d.temperature = si->d.tempRHSensor = si->d.relativeHumidity = si->d.pressure = si->d.batteryVoltage = NAN;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sonde::updateDisplayPos() {
|
void Sonde::updateDisplayPos() {
|
||||||
|
|
Ładowanie…
Reference in New Issue