summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@gmail.com>2015-02-22 14:31:03 +1000
committerLorn Potter <lorn.potter@gmail.com>2015-02-24 03:05:52 +0000
commita6a01b612fdb162378c4c184351e7cb8e5a559a0 (patch)
tree3d0111fb559ee4f4bee05318e4dac5bce6f78902 /src/plugins
parent4ff25ba156323d9b82e7cddf16eebcb744d0e0ca (diff)
Make sensorfw als values the common standard for QtSensors plugins
Change-Id: I69d15c8af9b6e5acde9d86e185395590369baab6 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/sensors/sensorfw/sensorfwals.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/sensors/sensorfw/sensorfwals.cpp b/src/plugins/sensors/sensorfw/sensorfwals.cpp
index 0f1b9591..5dd103b6 100644
--- a/src/plugins/sensors/sensorfw/sensorfwals.cpp
+++ b/src/plugins/sensors/sensorfw/sensorfwals.cpp
@@ -94,11 +94,11 @@ QAmbientLightReading::LightLevel Sensorfwals::getLightLevel(int lux)
return QAmbientLightReading::Undefined;
} else if (lux < 10) {
return QAmbientLightReading::Dark;
- } else if (lux < 50) {
+ } else if (lux < 80) {
return QAmbientLightReading::Twilight;
- } else if (lux < 100) {
+ } else if (lux < 400) {
return QAmbientLightReading::Light;
- } else if (lux < 150) {
+ } else if (lux < 2500) {
return QAmbientLightReading::Bright;
} else {
return QAmbientLightReading::Sunny;