mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 23:32:14 +02:00
gnss: rearrange enable_mm_gnss so it doesn't noop
This commit is contained in:
@@ -372,9 +372,9 @@ static void finish_assistance_data_upload(struct EG25Manager *manager)
|
||||
#ifdef HAVE_MMGLIB
|
||||
static void enable_mm_gnss(struct EG25Manager *manager)
|
||||
{
|
||||
MMModemLocationSource sources;
|
||||
gboolean signal_location;
|
||||
g_autoptr (GError) error = NULL;
|
||||
MMModemLocationSource sources = mm_modem_location_get_enabled(manager->mm_location);
|
||||
gboolean signal_location = mm_modem_location_signals_location(manager->mm_location);
|
||||
|
||||
if (manager->gnss_sources & EG25_GNSS_SOURCE_UNMANAGED)
|
||||
sources |= MM_MODEM_LOCATION_SOURCE_GPS_UNMANAGED;
|
||||
@@ -383,8 +383,6 @@ static void enable_mm_gnss(struct EG25Manager *manager)
|
||||
if (manager->gnss_sources & EG25_GNSS_SOURCE_RAW)
|
||||
sources |= MM_MODEM_LOCATION_SOURCE_GPS_RAW;
|
||||
|
||||
sources = mm_modem_location_get_enabled(manager->mm_location);
|
||||
signal_location = mm_modem_location_signals_location(manager->mm_location);
|
||||
mm_modem_location_setup_sync(manager->mm_location, sources,
|
||||
signal_location, NULL, &error);
|
||||
if (error != NULL)
|
||||
|
Reference in New Issue
Block a user