stefan pushed a commit to branch master.
commit 3c167a964b33c7773942eef9491624e6e779450f
Author: Stefan Schmidt <[email protected]>
Date: Fri Apr 19 10:00:11 2013 +0100
eeze/sensor/tizen: Fix start and stop from sensors during init and shutdown
---
src/modules/eeze/sensor/tizen/tizen.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/modules/eeze/sensor/tizen/tizen.c
b/src/modules/eeze/sensor/tizen/tizen.c
index 7a06baa..e3ae016 100644
--- a/src/modules/eeze/sensor/tizen/tizen.c
+++ b/src/modules/eeze/sensor/tizen/tizen.c
@@ -1313,9 +1313,8 @@ eeze_sensor_tizen_shutdown(void)
EINA_LIST_FREE(esensor_module->sensor_list, obj)
free(obj);
- sensor_start(sensor_handle, SENSOR_MOTION_FACEDOWN);
- sensor_start(sensor_handle, SENSOR_MOTION_DOUBLETAP);
- sensor_start(sensor_handle, SENSOR_MOTION_SHAKE);
+ sensor_stop(sensor_handle, SENSOR_MOTION_FACEDOWN);
+ sensor_stop(sensor_handle, SENSOR_MOTION_DOUBLETAP);
if (sensor_destroy(sensor_handle) != 0)
{
ERR("Failing to destroy sensor handle.");
@@ -1391,8 +1390,6 @@ sensor_tizen_shutdown(void)
{
Eeze_Sensor_Obj *sens;
- sensor_stop(sensor_handle, SENSOR_MOTION_FACEDOWN);
- sensor_stop(sensor_handle, SENSOR_MOTION_DOUBLETAP);
eeze_sensor_module_unregister("tizen");
EINA_LIST_FREE(esensor_module->sensor_list, sens)
free(sens);
--
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter