gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gpsd-dev] [PATCH] Bump GPS_PATH_MAX to allow using persistent names.


From: Marti Bolivar
Subject: [gpsd-dev] [PATCH] Bump GPS_PATH_MAX to allow using persistent names.
Date: Thu, 24 May 2012 17:06:57 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Signed-off-by: Marti Bolivar <address@hidden>
---

The current value of GPS_PATH_MAX works for /dev/ttyfoo, but is slightly too small to allow using persistent dev names. For example, an ND-100S also shows up on my machine as /dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0, which requires GPS_PATH_MAX >= 82.

I'm aware of gpsd.rules, but it seems convenient not to require the use of additional udev rules.

 gps.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gps.h b/gps.h
index 6a4920c..0f4d69e 100644
--- a/gps.h
+++ b/gps.h
@@ -43,7 +43,7 @@ extern "C" {
 #define MAXTAGLEN      8       /* maximum length of sentence tag name */
 #define MAXCHANNELS    72      /* must be > 12 GPS + 12 GLONASS + 2 WAAS */
 #define GPS_PRNMAX     32      /* above this number are SBAS satellites */
-#define GPS_PATH_MAX   64      /* dev files usually have short names */
+#define GPS_PATH_MAX   128     /* dev files usually have short names */
 #define MAXUSERDEVS    4       /* max devices per user */

 /*
--
1.7.0.4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]