summaryrefslogtreecommitdiff
path: root/core/SystemStatus.cpp
diff options
context:
space:
mode:
authorNilesh Gharde <quic_ngharde@quicinc.com>2022-04-20 11:43:34 +0530
committerNilesh Gharde <quic_ngharde@quicinc.com>2022-04-20 11:43:34 +0530
commitbce161567a26c345a73fb58f44d43d0378a954f4 (patch)
tree7eca0ed42abc0c8a38b6e89f26251b0e92b2b75f /core/SystemStatus.cpp
parent7ca3a83b2d1c047326a6d5e4047a881e18aab5a0 (diff)
Report Debug data outside active gnss session
Added change to allow AFW to get debug report outside active gnss session. For Location sdk we continue to follow same logic where we send out the debug data if there is active gnss session. Change-Id: I700e8b64fc39f4ddc8e824325cc3473f4d0c8883 CRs-fixed: 3167624
Diffstat (limited to 'core/SystemStatus.cpp')
-rw-r--r--core/SystemStatus.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/SystemStatus.cpp b/core/SystemStatus.cpp
index f206b00..82f1314 100644
--- a/core/SystemStatus.cpp
+++ b/core/SystemStatus.cpp
@@ -1602,9 +1602,10 @@ bool SystemStatus::eventDataItemNotify(IDataItemCore* dataitem)
@return true when successfully done
******************************************************************************/
-bool SystemStatus::getReport(SystemStatusReports& report, bool isLatestOnly) const {
+bool SystemStatus::getReport(SystemStatusReports& report, bool isLatestOnly,
+ bool inSessionOnly) const {
pthread_mutex_lock(&mMutexSystemStatus);
- if (!mTracking) {
+ if (inSessionOnly && !mTracking) {
pthread_mutex_unlock(&mMutexSystemStatus);
return true;
}