From 58c3ca45bd856a600b61ec9b4426bca640088cdd Mon Sep 17 00:00:00 2001 From: Saurabh Srivastava Date: Fri, 1 Oct 2021 18:23:35 +0530 Subject: Increasing boot_time and real_time acceptable variation Increasing acceptable delta between boot time and real time used while computing location elapsed realtime in order to accomodate older targets. CRs-Fixed: 3049971 Change-Id: I5e3fff76c9fe5d0bc7cb2abda700ea20ac75d63c --- core/LocApiBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp index 6a0ff84..860da2e 100644 --- a/core/LocApiBase.cpp +++ b/core/LocApiBase.cpp @@ -1034,7 +1034,7 @@ bool ElapsedRealtimeEstimator::getCurrentTime( struct timespec sinceBootTime; struct timespec sinceBootTimeTest; bool clockGetTimeSuccess = false; - const uint32_t MAX_TIME_DELTA_VALUE_NANOS = 10000; + const uint32_t MAX_TIME_DELTA_VALUE_NANOS = 15000; const uint32_t MAX_GET_TIME_COUNT = 20; /* Attempt to get CLOCK_REALTIME and CLOCK_BOOTIME in succession without an interruption or context switch (for up to MAX_GET_TIME_COUNT times) to avoid errors in the calculation */ -- cgit v1.2.3