From: Kaj-Michael Lang Date: Wed, 23 Jan 2008 14:44:13 +0000 (+0200) Subject: Set type when calling gps_new X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7210b9294dae62280b69a6613966bb2a5afd58c0;p=mapper Set type when calling gps_new --- 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();