Partial revert of METAR fix, now SimGear is fixed.
This reverts commit 2fdc24c109
.
This commit is contained in:
parent
5253215065
commit
c2fb01ccb7
2 changed files with 2 additions and 2 deletions
|
@ -443,7 +443,7 @@ void NoaaMetarRealWxController::requestMetar
|
|||
|
||||
virtual void onDone()
|
||||
{
|
||||
if( responseCode() >= 400 )
|
||||
if( responseCode() != 200 )
|
||||
{
|
||||
SG_LOG
|
||||
(
|
||||
|
|
|
@ -558,7 +558,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if( !mr->isComplete() )
|
||||
throw sg_io_exception("metar download timed out");
|
||||
if( mr->responseCode() >= 400 )
|
||||
if( mr->responseCode() != 200 )
|
||||
{
|
||||
std::cerr << "metar download failed: "
|
||||
<< mr->url()
|
||||
|
|
Loading…
Add table
Reference in a new issue