GPS Light fix

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1815 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
jasonshort 2011-03-26 06:53:27 +00:00
parent bcc1bf65f2
commit 5e25ade9dc
1 changed files with 3 additions and 1 deletions

View File

@ -783,8 +783,10 @@ void update_GPS(void)
g_gps->update(); g_gps->update();
update_GPS_light(); update_GPS_light();
if(g_gps->new_data)
GPS_failure_counter = 3;
if (g_gps->new_data && g_gps->fix) { if (g_gps->new_data && g_gps->fix) {
GPS_failure_counter = 3;
// XXX We should be sending GPS data off one of the regular loops so that we send // XXX We should be sending GPS data off one of the regular loops so that we send
// no-GPS-fix data too // no-GPS-fix data too