diff options
Diffstat (limited to 'gnss/location_gnss.cpp')
-rw-r--r-- | gnss/location_gnss.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnss/location_gnss.cpp b/gnss/location_gnss.cpp index 45ad292..23ec2cf 100644 --- a/gnss/location_gnss.cpp +++ b/gnss/location_gnss.cpp @@ -70,6 +70,7 @@ static void getGnssEnergyConsumed(GnssEnergyConsumedCallback energyConsumedCb); static void enableNfwLocationAccess(bool enable); static void nfwInit(const NfwCbInfo& cbInfo); static uint8_t getGpsLock(); +static void getPowerStateChanges(void* powerStateCb); static void odcpiInit(const OdcpiRequestCallback& callback); static void odcpiInject(const Location& location); @@ -112,7 +113,8 @@ static const GnssInterface gGnssInterface = { getGnssEnergyConsumed, enableNfwLocationAccess, nfwInit, - getGpsLock + getGpsLock, + getPowerStateChanges }; #ifndef DEBUG_X86 @@ -378,3 +380,10 @@ static uint8_t getGpsLock() { } } +static void getPowerStateChanges(void* powerStateCb) +{ + if (NULL != gGnssAdapter) { + gGnssAdapter->getPowerStateChangesCommand(powerStateCb); + } +} + |