--- a/qtmobility/plugins/sensors/maemo6/maemo6proximitysensor.cpp Fri May 14 16:41:33 2010 +0300
+++ b/qtmobility/plugins/sensors/maemo6/maemo6proximitysensor.cpp Thu May 27 13:42:11 2010 +0300
@@ -57,8 +57,10 @@
else
qWarning() << "Unable to initialize proximity sensor.";
- // close definition in meters - may be used as metadata even the sensor gives true/false values
- addOutputRange(0, 1, 1);
+ // metadata
+ addDataRate(2, 2); // 2Hz
+ sensor->setDataRate(2);
+ addOutputRange(0, 1, 1); // close definition in meters - may be used as metadata even the sensor gives true/false values
setDescription(QLatin1String("Measures if a living object is in proximity or not"));
m_initDone = true;