[-]
[+]
|
Changed |
_service:tar_git:sensorfw.changes
|
|
[-]
[+]
|
Changed |
_service:tar_git:sensorfw-qt5-hybris.spec
^
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -6,7 +6,7 @@
<service name="tar_git">
<param name="url">https://git.merproject.org/mer-core/sensorfw.git</param>
<param name="branch">master</param>
- <param name="revision">bd1f16eacc351afc057c621e7b4b56c17915f78f</param>
+ <param name="revision">8bd068fb0210146c685c3c7fe148bb8e253e8ddd</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Deleted |
_service:tar_git:hybris-libsensorfw-qt5-0.10.0.tar.bz2/config/60-sensor-selection-oeverrides.conf
^
|
@@ -1,25 +0,0 @@
-[available]
-
-; Sensors that are disabled by default.
-; -> Enable as appropriate
-
-;humiditysensor=True
-;magnetometersensor=True
-;pressuresensor=True
-;rotationsensor=True
-;stepcountersensor=True
-;tapsensor=True
-;temperaturesensor=True
-
-; Sensors that should/can be enabled/disabled based on
-; hw settings config - or are enabled if sensorfwd is
-; built without ssu-sysinfo support.
-; -> Override as appropriate.
-
-;accelerometersensor=False
-;alssensor=False
-;compasssensor=False
-;gyroscopesensor=False
-;lidsensor=False
-;orientationsensor=False
-;proximitysensor=False
|
[-]
[+]
|
Changed |
_service:tar_git:hybris-libsensorfw-qt5-0.10.2.tar.bz2/chains/compasschain/compasschain.cpp
^
|
@@ -178,6 +178,9 @@
addStandbyOverrideSource(accelerometerChain);
setIntervalSource(accelerometerChain);
+ } else {
+ addStandbyOverrideSource(orientAdaptor);
+ setIntervalSource(orientAdaptor);
}
}
|
[-]
[+]
|
Changed |
_service:tar_git:hybris-libsensorfw-qt5-0.10.2.tar.bz2/config/20-sensors-default.conf
^
|
@@ -23,14 +23,26 @@
; lidsensor=Feature_CoverSensor
lidsensor=False
-; To avoid revisiting config files for all old ports, the defaults
-; added sensors should be set "False" by default here, and to "True"
-; in device specific override config as appropriate.
+; Some sensors that are in theory supported by sensorfwd do not have
+; a suitable hybris adaptors, and thus it makes no sense to list them
+; as being available regardless of the hw / android hal status.
+tapsensor=False
+temperaturesensor=False
+; Sensors that have not been available in any officially supported
+; devices -> hide by default.
humiditysensor=False
-magnetometersensor=False
-pressuresensor=False
-rotationsensor=False
stepcountersensor=False
-tapsensor=False
-temperaturesensor=False
+
+; To minimize chances of regression, sensors that have been available at
+; least in one officially supported device -> do not hide by default.
+; (sensor loading should fail, so false positive should cause only
+; cosmetic issues on 1st use after bootup)
+
+magnetometersensor=True
+pressuresensor=True
+rotationsensor=True
+
+; To avoid revisiting config files for all old ports in the future, the
+; defaults for added sensors should be set "False" by default here, and
+; to "True" in device specific override config as appropriate.
|
[-]
[+]
|
Added |
_service:tar_git:hybris-libsensorfw-qt5-0.10.2.tar.bz2/config/60-sensors-DEVICE.conf
^
|
@@ -0,0 +1,29 @@
+[available]
+
+; Sensors that are enabled by default.
+; -> Disable as appropriate
+
+;magnetometersensor=False
+;pressuresensor=False
+;rotationsensor=False
+
+; Sensors that are disabled by default.
+; -> Enable as appropriate
+
+;humiditysensor=True
+;stepcountersensor=True
+;tapsensor=True
+;temperaturesensor=True
+
+; Sensors that should/can be enabled/disabled based on
+; hw settings config - or are enabled if sensorfwd is
+; built without ssu-sysinfo support.
+; -> Override as appropriate.
+
+;accelerometersensor=False
+;alssensor=False
+;compasssensor=False
+;gyroscopesensor=False
+;lidsensor=False
+;orientationsensor=False
+;proximitysensor=False
|
[-]
[+]
|
Changed |
_service:tar_git:hybris-libsensorfw-qt5-0.10.2.tar.bz2/core/hybrisadaptor.cpp
^
|
@@ -205,9 +205,13 @@
int HybrisManager::minDelay(int sensorType)
{
- if (sensorMap.contains(sensorType))
- return sensorList[sensorMap[sensorType]].minDelay;
- return 0;
+ int res = 0;
+ if (sensorMap.contains(sensorType)) {
+ res = sensorList[sensorMap[sensorType]].minDelay;
+ // us -> ms, round up
+ res = (res + 999) / 1000;
+ }
+ return res;
}
int HybrisManager::resolution(int sensorType)
|