diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-29 08:23:46 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-29 08:23:46 -0400 |
commit | 4873e25e90661026c16aa169096ca94254389f16 (patch) | |
tree | 4b27755bcb4de169337c12e60db8715fd4e80bbd /gpsdclient.c | |
parent | ef9d6459eb895c3a6eb09a800dea9cd884f0730c (diff) | |
download | gpsd-4873e25e90661026c16aa169096ca94254389f16.tar.gz |
Get the case of the subsquare letters right in the grid sqare.
Diffstat (limited to 'gpsdclient.c')
-rw-r--r-- | gpsdclient.c | 4 |
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; |