[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gpsd-commit-watch
Subject:    [Gpsd-commit-watch] r4813 - trunk
From:       ckuethe () mail ! berlios ! de
Date:       2008-10-15 19:47:25
Message-ID: 200810151947.m9FJlP90014990 () sheep ! berlios ! de
[Download RAW message or body]

Author: ckuethe
Date: 2008-10-15 21:47:20 +0200 (Wed, 15 Oct 2008)
New Revision: 4813

Modified:
   trunk/gpsd.c
   trunk/gpsd.xml
Log:
invert the sense of "-n"; gpsd will camp on devices by default unless you
use the "-n" flag to try save power. i have no evidence that this attempt
at power saving actually does any good in the real world, but i have seen
lots of complaints and confusion about it.


Modified: trunk/gpsd.c
===================================================================
--- trunk/gpsd.c	2008-10-08 04:46:35 UTC (rev 4812)
+++ trunk/gpsd.c	2008-10-15 19:47:20 UTC (rev 4813)
@@ -87,7 +87,7 @@
 static int maxfd;
 static int debuglevel;
 static bool in_background = false;
-static bool nowait = false;
+static bool nowait = true;
 static jmp_buf restartbuf;
 /*@ -initallelements -nullassign -nullderef @*/
 static struct gps_context_t context = {
@@ -1301,7 +1301,7 @@
 	    gpsd_service = optarg;
 	    break;
 	case 'n':
-	    nowait = true;
+	    nowait = false;
 	    break;
 	case 'P':
 	    pid_file = optarg;

Modified: trunk/gpsd.xml
===================================================================
--- trunk/gpsd.xml	2008-10-08 04:46:35 UTC (rev 4812)
+++ trunk/gpsd.xml	2008-10-15 19:47:20 UTC (rev 4813)
@@ -117,12 +117,11 @@
 </varlistentry>
 <varlistentry>
 <term>-n</term>
-<listitem><para>Don't wait for a client to connect before polling
-whatever GPS is associated with it.  The wait is a feature; many
-serial GPSes go to a standby mode (not drawing power) before the host
-machine asserts DTR, so waiting for the first actual request can save
-valuable battery power on portable equipment.  This option combines
-well with -D2 to enable monitoring of the GPS data stream.</para>
+<listitem><para>Wait for a client to connect before polling whatever
+GPS is associated with it. Some GPSes go to a standby mode (drawing
+less power) before the host machine asserts DTR, so waiting for the
+first actual request can save valuable battery power on portable
+equipment.</para>
 </listitem>
 </varlistentry>
 <varlistentry>

_______________________________________________
Gpsd-commit-watch mailing list
Gpsd-commit-watch@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/gpsd-commit-watch
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic