cli,location: use new mm_location_gps_nmea_get_traces()

This commit is contained in:
Aleksander Morgado
2020-01-01 09:13:45 +01:00
parent 9805ffe1b0
commit 6c1991e930

View File

@@ -510,7 +510,7 @@ get_location_process_reply (MMLocation3gpp *location_3gpp,
MMLocationCdmaBs *location_cdma_bs,
const GError *error)
{
gchar *nmea = NULL;
gchar **nmea = NULL;
gchar *mcc = NULL;
gchar *mnc = NULL;
gchar *lac = NULL;
@@ -538,7 +538,7 @@ get_location_process_reply (MMLocation3gpp *location_3gpp,
}
if (location_gps_nmea)
nmea = mm_location_gps_nmea_build_full (location_gps_nmea);
nmea = mm_location_gps_nmea_get_traces (location_gps_nmea);
if (location_gps_raw) {
gps_utc = mm_location_gps_raw_get_utc_time (location_gps_raw);
@@ -557,7 +557,7 @@ get_location_process_reply (MMLocation3gpp *location_3gpp,
mmcli_output_string_take (MMC_F_LOCATION_3GPP_LAC, lac);
mmcli_output_string_take (MMC_F_LOCATION_3GPP_TAC, tac);
mmcli_output_string_take (MMC_F_LOCATION_3GPP_CID, cid);
mmcli_output_string_multiline_take (MMC_F_LOCATION_GPS_NMEA, nmea);
mmcli_output_string_array_take (MMC_F_LOCATION_GPS_NMEA, nmea, TRUE);
mmcli_output_string (MMC_F_LOCATION_GPS_UTC, gps_utc);
mmcli_output_string_take (MMC_F_LOCATION_GPS_LONG, gps_longitude);
mmcli_output_string_take (MMC_F_LOCATION_GPS_LAT, gps_latitude);