From ec319edd2cda321d7542784b997acd0da040fa3d Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 21 Apr 2017 09:17:18 -0700 Subject: [PATCH] ao-test-baro: Be more lax about altitude checks High pressure here today and the altimeter is reading -69m. Allow down to -100m when testing baro values. Signed-off-by: Keith Packard --- ao-tools/ao-test-baro/ao-test-baro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ao-tools/ao-test-baro/ao-test-baro.c b/ao-tools/ao-test-baro/ao-test-baro.c index d2b81e4f..36c805c2 100644 --- a/ao-tools/ao-test-baro/ao-test-baro.c +++ b/ao-tools/ao-test-baro/ao-test-baro.c @@ -164,7 +164,7 @@ do_baro(struct cc_usb *usb) { double temperature = strtod(temp[2], NULL) / 100.0; double altitude = strtod(alt[1], NULL); - if (altitude < -50 || 3000 < altitude) { + if (altitude < -100 || 3000 < altitude) { printf ("weird altitude %f\n", altitude); free_baro(b); return 0; -- 2.30.2