qtmobility/plugins/sensors/n900/n900lightsensor.cpp
changeset 14 6fbed849b4f4
parent 11 06b8e2af4411
--- a/qtmobility/plugins/sensors/n900/n900lightsensor.cpp	Fri Jun 11 14:26:25 2010 +0300
+++ b/qtmobility/plugins/sensors/n900/n900lightsensor.cpp	Wed Jun 23 19:08:38 2010 +0300
@@ -44,8 +44,8 @@
 #include <QDebug>
 #include <time.h>
 
-const char *n900lightsensor::id("n900.ambientlight");
-const char *n900lightsensor::filename("/sys/class/i2c-adapter/i2c-2/2-0029/lux");
+char const * const n900lightsensor::id("n900.ambientlight");
+char const * const n900lightsensor::filename("/sys/class/i2c-adapter/i2c-2/2-0029/lux");
 
 n900lightsensor::n900lightsensor(QSensor *sensor)
     : n900filebasedsensor(sensor)
@@ -55,7 +55,6 @@
     // a read of the /sys file (no interrupt/timing loop/etc. is used).
     // Since no continuous operation is possible, don't set a data rate.
     addDataRate(2, 2); // Close enough to 2 Hz
-    sensor->setDataRate(2);
     setDescription(QLatin1String("tsl2563"));
 }