From 92ba006e1b419b29b08d350f0fa7c3ea78fd2b68 Mon Sep 17 00:00:00 2001 From: Saurabh Srivastava Date: Fri, 6 Sep 2019 17:50:56 +0530 Subject: [PATCH] Support PQWP7 parsing without NAVIC Support PQWP7 NMEA parsing for older GNSS engine without NAVIC support. CRs-Fixed: 2516292 Change-Id: I62bd4467f15b8c5fc77e7c979eefb146276ff2a0 --- core/SystemStatus.cpp | 12 ++++++++++-- core/SystemStatus.h | 3 ++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/core/SystemStatus.cpp b/core/SystemStatus.cpp index 9ca126f8..7d766517 100644 --- a/core/SystemStatus.cpp +++ b/core/SystemStatus.cpp @@ -660,6 +660,7 @@ private: { eTalker = 0, eUtcTime = 1, + eMin = 2 + SV_ALL_NUM_MIN*3, eMax = 2 + SV_ALL_NUM*3 }; SystemStatusPQWP7 mP7; @@ -668,11 +669,18 @@ public: SystemStatusPQWP7parser(const char *str_in, uint32_t len_in) : SystemStatusNmeaBase(str_in, len_in) { - if (mField.size() < eMax) { + uint32_t svLimit = SV_ALL_NUM; + if (mField.size() < eMin) { LOC_LOGE("PQWP7parser - invalid size=%zu", mField.size()); return; } - for (uint32_t i=0; i