set update every 120s
[googlelatitude] / src / gps.cpp
index 49506aa..b7ed336 100644 (file)
@@ -10,6 +10,7 @@ GpsMaemo5::GpsMaemo5(QObject *parent) : QObject(parent) {
 
     g_signal_connect(device, "changed", G_CALLBACK(GpsMaemo5_changed), this);
     g_object_set(G_OBJECT(control), "preferred-method", LOCATION_METHOD_ACWP, NULL);
 
     g_signal_connect(device, "changed", G_CALLBACK(GpsMaemo5_changed), this);
     g_object_set(G_OBJECT(control), "preferred-method", LOCATION_METHOD_ACWP, NULL);
+    g_object_set(G_OBJECT(control), "preferred-interval", LOCATION_INTERVAL_120S, NULL);
 
     location_gpsd_control_start(control);
 }
 
     location_gpsd_control_start(control);
 }