From acdbd7cda14c5bd9fa7d1035196a3ac956bc13af Mon Sep 17 00:00:00 2001 From: "Hongkuk, Son" Date: Fri, 18 Dec 2015 17:07:25 +0900 Subject: [PATCH] online-doc: fix misusing sensor API Signed-off-by: Hongkuk, Son Change-Id: Id10eb3276eae9d35402845b43aa3f87abd0358a1 --- org.tizen.tutorials/html/native/system/sensor_tutorial_n.htm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.tizen.tutorials/html/native/system/sensor_tutorial_n.htm b/org.tizen.tutorials/html/native/system/sensor_tutorial_n.htm index f7b6f0b..7ca5451 100644 --- a/org.tizen.tutorials/html/native/system/sensor_tutorial_n.htm +++ b/org.tizen.tutorials/html/native/system/sensor_tutorial_n.htm @@ -86,8 +86,9 @@ error = sensor_get_default_sensor(type, &sensor); int error; sensor_type_e type = SENSOR_ALL; sensor_h *list; +int sensor_count; -error = sensor_get_default_sensor(type, &list); +error = sensor_get_sensor_list(type, &list, &sensor_count); // API caller must explicitly free this list after use // free(list); @@ -163,7 +164,7 @@ error = sensor_listener_start(listener);
  • Read sensor data (optional). -

    In order to read sensor data, call the sensor_listener_start() function:

    +

    In order to read sensor data, the sensor listener needs to be started in advance using sensor_listener_read_data() function:

     sensor_event_s event;
     error = sensor_listener_read_data(listener, &event);
    -- 
    2.7.4