From 686d3f4c7989f9b883b54fc26bb1974d10df98d3 Mon Sep 17 00:00:00 2001 From: Denis Yeldandi Date: Fri, 10 Oct 2014 18:42:24 +0400 Subject: [PATCH] Checking if fix status is less or equal to 0 rather than just equal --- src/drivers/gps/ashtech.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/gps/ashtech.cpp b/src/drivers/gps/ashtech.cpp index a61c7196b5..a2e292de2a 100644 --- a/src/drivers/gps/ashtech.cpp +++ b/src/drivers/gps/ashtech.cpp @@ -178,7 +178,7 @@ int ASHTECH::handle_message(int len) _gps_position->alt = alt * 1000; _rate_count_lat_lon++; - if (fix_quality == 0) { + if (fix_quality <= 0) { _gps_position->fix_type = 0; } else {