Fix:vehicle/webos:webOS2 2.2 needs the GPS workaround aswell
authornorad <norad@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 7 Sep 2011 17:07:02 +0000 (17:07 +0000)
committernorad <norad@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 7 Sep 2011 17:07:02 +0000 (17:07 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4767 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/vehicle/webos/vehicle_webos.c

index ac4b1bc..127fa2a 100644 (file)
@@ -98,7 +98,7 @@ vehicle_webos_gps_update(struct vehicle_priv *priv, PDL_Location *location)
        priv->fix_time = tv.tv_sec;
        priv->geo.lat = location->latitude;
        /* workaround for webOS GPS bug following */
-       priv->geo.lng = (priv->pdk_version == 200 && location->longitude >= -1 && location->longitude <= 1) ?
+       priv->geo.lng = (priv->pdk_version >= 200 && location->longitude >= -1 && location->longitude <= 1) ?
                -location->longitude : location->longitude;
 
        dbg(2,"Location: %f %f %f %.12g %.12g +-%fm\n",