[Gpredict-svn] SF.net SVN: gpredict:[782] branches/gpsd_testing/src/qth-data.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <aa...@us...> - 2011-03-06 02:58:14
|
Revision: 782
http://gpredict.svn.sourceforge.net/gpredict/?rev=782&view=rev
Author: aa1vs
Date: 2011-03-06 02:58:08 +0000 (Sun, 06 Mar 2011)
Log Message:
-----------
Reduce number of loops for GPSD data.
Modified Paths:
--------------
branches/gpsd_testing/src/qth-data.c
Modified: branches/gpsd_testing/src/qth-data.c
===================================================================
--- branches/gpsd_testing/src/qth-data.c 2011-03-06 02:54:10 UTC (rev 781)
+++ branches/gpsd_testing/src/qth-data.c 2011-03-06 02:58:08 UTC (rev 782)
@@ -510,7 +510,7 @@
/* if we do not do this as a while loop, the gpsd packets can backup */
/* and no longer be in sync with the gps receiver*/
num_loops++;
- if (num_loops>10000){
+ if (num_loops>1000){
retval=FALSE;
break;
}
@@ -549,8 +549,10 @@
case 5:
#if GPSD_API_MAJOR_VERSION==5
while(gps_waiting(qth->gps_data) == 1) {
+ /*see comment from above*/
+ /*hopefully not needed but does not hurt anything.*/
num_loops++;
- if (num_loops>10000){
+ if (num_loops>1000){
retval=FALSE;
break;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|