Repository : ssh://git@open-mesh.org/alfred
On branch : master
commit 2dbaac4cf1f974f6ef81e24c7fef286456a800ee Author: Sven Eckelmann sven@narfation.org Date: Sat May 24 13:44:11 2014 +0200
alfred-gpsd: Fix altitude verification check
Signed-off-by: Sven Eckelmann sven@narfation.org [sw: fixed typo in subject] Signed-off-by: Simon Wunderlich sw@simonwunderlich.de
2dbaac4cf1f974f6ef81e24c7fef286456a800ee gpsd/alfred-gpsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gpsd/alfred-gpsd.c b/gpsd/alfred-gpsd.c index ef20f28..089f2af 100644 --- a/gpsd/alfred-gpsd.c +++ b/gpsd/alfred-gpsd.c @@ -370,7 +370,7 @@ static void gpsd_parse_location(struct globals *globals, exit(EXIT_FAILURE); }
- if ((alt < -1000) || (lon > 9000)) { + if ((alt < -1000) || (alt > 9000)) { /* No support for aircraft or submarines! */ printf("Invalid altitude\n"); gpsd_usage();