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:
parent
fe00f76684
commit
6db56e8f27
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue