From e3306f6382815334eb10d06b064d349035041450 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Sun, 4 Sep 2022 15:47:05 +0200 Subject: [PATCH] Adjusting pressure offset --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 3725783..d135e6d 100644 --- a/src/main.c +++ b/src/main.c @@ -7,7 +7,7 @@ //#define HZ2MS(X) ((uint64_t)((X * 53000.0)/(SystemCoreClock))) // #define BMP180_SOLDERING_OFF_T 190 -#define BMP180_SOLDERING_OFF_P 14000 +#define BMP180_SOLDERING_OFF_P 12500 void init_uart0(void) { @@ -485,7 +485,7 @@ int main(void) int32_t gps_altitude = global_minmea_gga.altitude.value / global_minmea_gga.altitude.scale; pressure += (gps_altitude * 12); - snprintf(prs, MAX_ROW - 1, "p (at sea): %u.%02u", pressure/100, pressure % 100); + snprintf(prs, MAX_ROW - 1, "p (sea): %u.%02u", pressure/100, pressure % 100); LCD_ShowString(0, 48, (u8 *)(prs), CYAN); } else { snprintf(prs, MAX_ROW - 1, "p (meas): %u.%02u", pressure/100, pressure % 100);