summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2017-09-19 11:54:19 -0400
committerEric S. Raymond <esr@thyrsus.com>2017-09-19 11:54:19 -0400
commit22de7749a1ff2e2857bee8f360ff1da384f1bc29 (patch)
tree0697f5fe56a3cce7c58d80f6c2674bc30fc2d550 /gpsctl.c
parent3db781b747e03df8faa71a8d4281f9294e05084b (diff)
downloadgpsd-22de7749a1ff2e2857bee8f360ff1da384f1bc29.tar.gz
In gpsctl, fore timeout of 2 on u-blox.
If this turn out to work, we may have to add a timeout member to the device data structure.
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsctl.c b/gpsctl.c
index 756f7081..a8769eda 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -295,6 +295,9 @@ int main(int argc, char **argv)
break;
case 't': /* force the device type */
devtype = optarg;
+ /* experimental kluge */
+ if (strcmp(devtype, "u-blox") == 0)
+ timeout = 2;
break;
case 'R': /* remove the SHM export segment */
#ifdef SHM_EXPORT_ENABLE