summaryrefslogtreecommitdiff
path: root/gpsdclient.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-29 08:23:46 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-29 08:23:46 -0400
commit4873e25e90661026c16aa169096ca94254389f16 (patch)
tree4b27755bcb4de169337c12e60db8715fd4e80bbd /gpsdclient.c
parentef9d6459eb895c3a6eb09a800dea9cd884f0730c (diff)
downloadgpsd-4873e25e90661026c16aa169096ca94254389f16.tar.gz
Get the case of the subsquare letters right in the grid sqare.
Diffstat (limited to 'gpsdclient.c')
-rw-r--r--gpsdclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpsdclient.c b/gpsdclient.c
index db016174..c9137c52 100644
--- a/gpsdclient.c
+++ b/gpsdclient.c
@@ -188,7 +188,7 @@ char *latlon2maidenhead(double n, double e)
t1=(int)e/2;
buf[2]=(char)t1+'0';
e-=(float)t1*2;
- buf[4]=(char)(int)(e*12.0+0.5)+'A';
+ buf[4]=(char)(int)(e*12.0+0.5)+'a';
n=n+90.0;
t1=(int)(n/10.0);
@@ -197,7 +197,7 @@ char *latlon2maidenhead(double n, double e)
buf[3]=(char)n+'0';
n-=(int)n;
n*=24; // convert to 24 division
- buf[5]=(char)(int)(n+0.5)+'A';
+ buf[5]=(char)(int)(n+0.5)+'a';
buf[6] = '\0';
return buf;