summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-02-23 00:07:01 +0100
committerAleksander Morgado <aleksander@aleksander.es>2022-02-26 23:10:21 +0100
commit3f7dfbe087e166402bfd2983d60a65387ecbaa9c (patch)
treead5adfb24fc139c829a32e65544f654221b92c10
parent144c4159a6f17863578e48cf68bf5908d5231771 (diff)
downloadlibqmi-3f7dfbe087e166402bfd2983d60a65387ecbaa9c.tar.gz
qmicli,loc: port to use the new APIs without QmiIndicationLoc...GpsTime
-rw-r--r--src/qmicli/qmicli-loc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qmicli/qmicli-loc.c b/src/qmicli/qmicli-loc.c
index c6c382f0..8d5352e4 100644
--- a/src/qmicli/qmicli-loc.c
+++ b/src/qmicli/qmicli-loc.c
@@ -474,7 +474,8 @@ position_report_received (QmiClientLoc *client,
gfloat pdop;
gfloat hdop;
gfloat vdop;
- QmiIndicationLocPositionReportOutputGpsTime gps_time;
+ guint16 gps_weeks;
+ guint32 gps_time_of_week_milliseconds;
gboolean auxb;
GArray *array;
@@ -601,8 +602,8 @@ position_report_received (QmiClientLoc *client,
else
g_print (" Leap seconds: n/a\n");
- if (qmi_indication_loc_position_report_output_get_gps_time (output, &gps_time, NULL))
- g_print (" GPS time: %u weeks and %ums\n", gps_time.gps_weeks, gps_time.gps_time_of_week_milliseconds);
+ if (qmi_indication_loc_position_report_output_get_gps_date_time (output, &gps_weeks, &gps_time_of_week_milliseconds, NULL))
+ g_print (" GPS time: %u weeks and %ums\n", gps_weeks, gps_time_of_week_milliseconds);
else
g_print (" GPS time: n/a\n");