From 7210b9294dae62280b69a6613966bb2a5afd58c0 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 23 Jan 2008 16:44:13 +0200 Subject: [PATCH] Set type when calling gps_new --- src/mapper.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mapper.c b/src/mapper.c index ae3599d..759467f 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -201,15 +201,16 @@ switch (mis) { case MAPPER_INIT_START: curl_global_init(CURL_GLOBAL_NOTHING); gnome_vfs_init(); - _gps=gps_new(); - _gps->io.type=GPS_IO_SIMULATION; + /* XXX: Load GPS configuration, then create gps */ #ifdef WITH_BLUEZ - _gps->io.type=GPS_IO_RFCOMM; -#endif + _gps=gps_new(GPS_IO_RFCOMM); +#else #ifdef WITH_HILDON_DBUS_BT - _gps->io.type=GPS_IO_HILDON_DBUS; + _gps=gps_new(GPS_IO_RFCOMM); +#else + _gps=gps_new(GPS_IO_SIMULATION); +#endif #endif - _gps->io.conn = RCVR_OFF; timezone_init(); gpx_init(); variables_init(); -- 2.39.5