if (_gps->io.conn > RCVR_OFF)
gps_conn_set_state(_gps, RCVR_OFF);
gps_disconnect(_gps);
- track_add(0, FALSE);
+ track_add(NULL, FALSE);
_speed_excess=FALSE;
}
if (_enable_gps==FALSE)
/* Move mark to new location. */
map_refresh_mark();
-track_add(time(NULL), FALSE);
+_gps->data.time=time(NULL);
+track_add(&_gps->data, FALSE);
return TRUE;
}
gconf_client_clear_cache(gconf_client);
gps_conn_set_state(_gps, RCVR_OFF);
gps_disconnect(_gps);
- track_add(0, FALSE);
+ track_add(NULL, FALSE);
/* Pretend autoroute is in progress to avoid download. */
if (_autoroute_data.enabled)
_autoroute_data.in_progress = TRUE;
unit2latlon(_gps->data.unitx, _gps->data.unity, _gps->data.lat, _gps->data.lon);
_gps->data.speed=20.f;
gps_data_integerize(&_gps->data);
-track_add(time(NULL), FALSE);
+_gps->data.time=time(NULL);
+track_add(&_gps->data, FALSE);
map_refresh_mark();
}