[PATCH 2/7] GPS is configurable by DGPS_ENABLE variable
tomas.jura1 at gmail.com
tomas.jura1 at gmail.com
Tue Feb 2 14:30:20 UTC 2016
From: Tomas Jura <tomas_jura1 at gmail.com>
---
plugins/mbm/mm-broadband-modem-mbm.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/plugins/mbm/mm-broadband-modem-mbm.c b/plugins/mbm/mm-broadband-modem-mbm.c
index bfd26da..efd4f63 100644
--- a/plugins/mbm/mm-broadband-modem-mbm.c
+++ b/plugins/mbm/mm-broadband-modem-mbm.c
@@ -1433,8 +1433,10 @@ parent_enable_location_gathering_ready (MMIfaceModemLocation *self,
if (start_gps) {
gchar *s_gps_interval = getenv("GPS_INTERVAL");
- gchar *buf = g_strdup_printf("AT*E2GPSCTL=1,%d,0",
- s_gps_interval ? CLAMP(atoi(s_gps_interval),1,60) : MBM_GPS_NMEA_INTERVAL );
+ gchar *s_dgps = getenv("DGPS_ENABLE");
+ gchar *buf = g_strdup_printf("AT*E2GPSCTL=1,%d,%d",
+ s_gps_interval ? CLAMP(atoi(s_gps_interval),1,60) : MBM_GPS_NMEA_INTERVAL,
+ s_dgps ? CLAMP(atoi(s_dgps),0,1) : 0 );
mm_base_modem_at_command_full (MM_BASE_MODEM (self),
mm_base_modem_peek_port_primary (MM_BASE_MODEM (self)),
buf,
--
2.7.0
More information about the ModemManager-devel
mailing list