From c64137ec20294ad8d78c704a6ed423a7a2554a59 Mon Sep 17 00:00:00 2001 From: Dante Russo Date: Sun, 22 Mar 2020 19:33:23 +0800 Subject: 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 (cherry picked from commit 7fcd884a21b25b40fb8054a8dfcd895442b3266b) --- gnss/location_gnss.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3