simplify the METAR string, remove newline etc.
This commit is contained in:
parent
b648b71671
commit
de7debe253
1 changed files with 1 additions and 1 deletions
|
@ -367,7 +367,7 @@ void NoaaMetarRealWxController::requestMetar( MetarDataHandler * metarDataHandle
|
||||||
virtual void responseComplete()
|
virtual void responseComplete()
|
||||||
{
|
{
|
||||||
if (responseCode() == 200) {
|
if (responseCode() == 200) {
|
||||||
_metarDataHandler->handleMetarData( _metar);
|
_metarDataHandler->handleMetarData( simgear::strutils::simplify(_metar) );
|
||||||
} else {
|
} else {
|
||||||
SG_LOG(SG_ENVIRONMENT, SG_WARN, "metar download failed:" << url() << ": reason:" << responseReason());
|
SG_LOG(SG_ENVIRONMENT, SG_WARN, "metar download failed:" << url() << ": reason:" << responseReason());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue