gnss: handle locked SIM

ModemManager Location service is only available after SIM unlock
and network registration.
Track service separately to avoid an assert error and crashes.
GNSS assistance data is uploaded when the service becomes available.
This commit is contained in:
Dylan Van Assche
2021-08-11 17:11:01 +02:00
parent 75570e45da
commit ef94492b30
3 changed files with 27 additions and 7 deletions

View File

@@ -13,4 +13,4 @@
void gnss_init(struct EG25Manager *manager, toml_table_t *config);
void gnss_destroy(struct EG25Manager *manager);
void gnss_upload_assistance_data(struct EG25Manager *manager);
gboolean gnss_upload_assistance_data(struct EG25Manager *manager);