diff options
author | Derrick Brashear <shadow@gmail.com> | 2000-07-11 14:18:33 +0000 |
---|---|---|
committer | Derrick Brashear <shadow@gmail.com> | 2000-07-11 14:18:33 +0000 |
commit | 28c207fbcb3f0b521db0f19c550bed168a624c74 (patch) | |
tree | 35da14f6da9fbc80e76660cb76eb737fecc622a5 /xgpsspeed.c | |
parent | a239c268f93841d52a231956769a92875280798c (diff) | |
download | gpsd-28c207fbcb3f0b521db0f19c550bed168a624c74.tar.gz |
more 1.06
Diffstat (limited to 'xgpsspeed.c')
-rw-r--r-- | xgpsspeed.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xgpsspeed.c b/xgpsspeed.c index 88e12408..c2fdb0bc 100644 --- a/xgpsspeed.c +++ b/xgpsspeed.c @@ -55,7 +55,7 @@ static void open_input(XtAppContext app); int errexit(char *s) { perror(s); - //serial_close(); + /* serial_close(); */ exit(1); } @@ -129,7 +129,9 @@ Usage() void update_display() { int new = rint(gNMEAdata.speed * 6076.12 / 5280); - // fprintf(stderr, "gNMEAspeed %f scaled %f %d\n", gNMEAdata.speed, rint(gNMEAdata.speed * 5208/6706.12), (int)rint(gNMEAdata.speed * 5208/6706.12)); +#if 0 + fprintf(stderr, "gNMEAspeed %f scaled %f %d\n", gNMEAdata.speed, rint(gNMEAdata.speed * 5208/6706.12), (int)rint(gNMEAdata.speed * 5208/6706.12)); +#endif if (new > 100) new = 100; @@ -178,7 +180,7 @@ int my_serial_open() temp = malloc(strlen(device_name) + 1); strcpy(temp, device_name); - //temp now holds the HOSTNAME portion and port the port number. + /* temp now holds the HOSTNAME portion and port the port number. */ ttyfd = connectTCP(temp, port); free(temp); port = 0; |