X-Git-Url: http://git.maemo.org/git/?p=googlelatitude;a=blobdiff_plain;f=src%2Fgps.cpp;h=99080f992ceeae2e88b893027bdff6a9033fe1a6;hp=5c52eb96a1cc917d7b5b9fbb4f747399ce37e666;hb=7ee5f4d99ce070730090ad079c59ec2d5ab00906;hpb=68a393779a3cb7be3636dc3045eed820a82a4c8e diff --git a/src/gps.cpp b/src/gps.cpp index 5c52eb9..99080f9 100644 --- a/src/gps.cpp +++ b/src/gps.cpp @@ -1,6 +1,6 @@ #include "gps.h" -#ifdef Q_WS_MAEMO_5 +#ifdef LIBLOCATION GpsMaemo5::GpsMaemo5(QObject *parent) : QObject(parent) { latitude = 0; @@ -44,8 +44,7 @@ void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps) { if ( gps->usegps == 0) { emit gps->getOK_acwp(); - // if ( gps->accuracy < 100*1000 ) gps->stop(); - if ( gps->accuracy < 640*1000 ) gps->stop(); + if ( gps->accuracy < 10*1000 ) gps->stop(); } else if ( gps->usegps == 1 ) { emit gps->getOK_agnss(); // if ( device->satellites_in_use > 0 ) gps->stop();