diff options
author | Katz Yamada <kyamada@codeaurora.org> | 2017-05-18 11:00:17 -0700 |
---|---|---|
committer | Katz Yamada <kyamada@codeaurora.org> | 2017-05-18 11:00:17 -0700 |
commit | e3d70314b0001d54c4ad45e489ef905ffab65da5 (patch) | |
tree | 38f9cf9b94b564ae30698b807682f10b4771d783 /core/SystemStatus.cpp | |
parent | 9546df29652cdd0583db7cce840e9c620fb9a8db (diff) | |
download | gps-e3d70314b0001d54c4ad45e489ef905ffab65da5.tar.gz |
Fix for incorrect SVids and timestamps in bugreport
Fix SVids and timestamps shown in adb bugreport to
align with Android standard.
Change-Id: Ib166b09f1d63f7a93d53798dbb188fec0d77e88a
CRs-Fixed: 2042937
Diffstat (limited to 'core/SystemStatus.cpp')
-rw-r--r-- | core/SystemStatus.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/SystemStatus.cpp b/core/SystemStatus.cpp index f4f07f2..80406f6 100644 --- a/core/SystemStatus.cpp +++ b/core/SystemStatus.cpp @@ -181,11 +181,12 @@ public: SystemStatusPQWM1parser(const char *str_in, uint32_t len_in) : SystemStatusNmeaBase(str_in, len_in) { + memset(&mM1, 0, sizeof(mM1)); if (mField.size() < eMax) { LOC_LOGE("PQWM1parser - invalid size=%d", mField.size()); + mM1.mTimeValid = 0; return; } - memset(&mM1, 0, sizeof(mM1)); mM1.mGpsWeek = atoi(mField[eGpsWeek].c_str()); mM1.mGpsTowMs = atoi(mField[eGpsTowMs].c_str()); mM1.mTimeValid = atoi(mField[eTimeValid].c_str()); |