Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 8cc696bf authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

GpsLocationProvider: Reset GPS interface after cleanup

Since the init routine checks for the existence of the interface
struct (and skips execution if it exists), it was effectively only
being executed once. If the cleanup function in the GPS HAL destroys
data or handles that are established by init (which happens in the
libloc_api code), the end result is that GPS gets broken after being
disabled once, and can only be restored by a reboot.

This patch makes the HAL's init re-execute whenever GPS is (re)enabled.

Change-Id: I8eedbcd140484a132c5a90a06b7f95fbb0cab410
parent 572daef6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment