From b03f7f5f9d04bd1a1207f709f10c574c55a07b3b Mon Sep 17 00:00:00 2001 From: Kyle Corry Date: Sat, 25 Nov 2023 19:03:58 -0500 Subject: [PATCH] Fix fused altimeter time --- .../trail_sense/shared/sensors/altimeter/FusedAltimeter2.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/kylecorry/trail_sense/shared/sensors/altimeter/FusedAltimeter2.kt b/app/src/main/java/com/kylecorry/trail_sense/shared/sensors/altimeter/FusedAltimeter2.kt index 2f32df554..d7fea1f8e 100644 --- a/app/src/main/java/com/kylecorry/trail_sense/shared/sensors/altimeter/FusedAltimeter2.kt +++ b/app/src/main/java/com/kylecorry/trail_sense/shared/sensors/altimeter/FusedAltimeter2.kt @@ -162,7 +162,7 @@ class FusedAltimeter2( "cache_fused_altimeter_last_sea_level_pressure_time" // The amount of time before the sea level pressure expires if not updated using the GPS - private val SEA_LEVEL_EXPIRATION = Duration.ofMinutes(1) + private val SEA_LEVEL_EXPIRATION = Duration.ofHours(1) // 2% GPS, 98% barometer private const val ALPHA = 0.02f