Revision: 7069
http://playerstage.svn.sourceforge.net/playerstage/?rev=7069&view=rev
Author: gbiggs
Date: 2008-10-07 00:56:12 +0000 (Tue, 07 Oct 2008)
Log Message:
-----------
Applied patch 2145002
Modified Paths:
--------------
code/player/trunk/server/drivers/gps/garminnmea.cc
Modified: code/player/trunk/server/drivers/gps/garminnmea.cc
===================================================================
--- code/player/trunk/server/drivers/gps/garminnmea.cc 2008-10-07 00:49:03 UTC
(rev 7068)
+++ code/player/trunk/server/drivers/gps/garminnmea.cc 2008-10-07 00:56:12 UTC
(rev 7069)
@@ -1010,6 +1010,7 @@
char tmp[8];
struct tm tms;
time_t utc;
+ static bool short_time_field = 0;
//printf("got RMC (%s)\n", buf);
//fflush(stdout);
@@ -1021,9 +1022,17 @@
if (strlen(field) < 6)
{
- PLAYER_WARN("short time field; ignoring");
+ /* This can happen while indoors. Prevent the screen from being flooded
+ with these messages */
+ if (!short_time_field)
+ {
+ PLAYER_WARN("short time field; ignoring");
+ short_time_field = 1;
+ }
return -1;
}
+ /* else */
+ short_time_field = 0;
// first field is time of day. HHMMSS
strncpy(tmp,field,2);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit