1
0
Fork 0

Partial revert of METAR fix, now SimGear is fixed.

This reverts commit 2fdc24c109.
This commit is contained in:
James Turner 2019-02-17 19:02:16 +00:00
parent 5253215065
commit c2fb01ccb7
2 changed files with 2 additions and 2 deletions

View file

@ -443,7 +443,7 @@ void NoaaMetarRealWxController::requestMetar
virtual void onDone()
{
if( responseCode() >= 400 )
if( responseCode() != 200 )
{
SG_LOG
(

View file

@ -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()