1
0
Fork 0

Bugfix: Immediately fetch METAR on reenabling of "Live data"

If "Live data" was disabled in any way in the global-weather dialog
and reenabled later, the next metar fetch occoured only after up
to 15 minutes after the report expired. This patch triggers triggers
an immediate fetch of a metar after enabling live data.
This commit is contained in:
Torsten Dreyer 2010-12-22 08:34:44 +01:00
parent fe00f76684
commit 6db56e8f27

View file

@ -215,6 +215,7 @@ void NoaaMetarRealWxController::update( bool first, double dt )
bool valid = _metarValidNode->getBoolValue();
string stationId = valid ? _metarStationIdNode->getStringValue() : "";
if( first ) _metarTimeToLive = 0.0;
if( _metarTimeToLive <= 0.0 ) {
valid = false;