diff options
author | Dante Russo <drusso@codeaurora.org> | 2020-03-22 19:33:23 +0800 |
---|---|---|
committer | Shinru Han <shinruhan@google.com> | 2020-03-24 02:53:32 +0000 |
commit | 7fcd884a21b25b40fb8054a8dfcd895442b3266b (patch) | |
tree | d38070c1fa6254297ba5892d64fac08d1c89b322 | |
parent | cd5ef1dfc22859bffaf84f2fb90fb89704406ced (diff) | |
download | gps-7fcd884a21b25b40fb8054a8dfcd895442b3266b.tar.gz |
Fix odcpi feature when Location is off in settings
Assure gnssInterface is initialized during call to
getGnssInterface to assure GnssAdapter is created
and able to accept calls like odcpiInit
Bug: 152261445
Test: Verified ODCPI is initialized at boot-up with location settings off.
CR-fixed: 2644833
Change-Id: I60adea4d9a0d174244b2441ce14093daf5c20efb
-rw-r--r-- | gnss/location_gnss.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gnss/location_gnss.cpp b/gnss/location_gnss.cpp index 97e99e4..c3ea105 100644 --- a/gnss/location_gnss.cpp +++ b/gnss/location_gnss.cpp @@ -140,6 +140,7 @@ extern "C" const GnssInterface* getGnssInterface() const GnssInterface* getGnssInterface() #endif // DEBUG_X86 { + gGnssInterface.initialize(); return &gGnssInterface; } |