Change calling libsensor API 56/287356/1
authorTaeminYeom <taemin.yeom@samsung.com>
Fri, 27 Jan 2023 07:05:48 +0000 (16:05 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Fri, 27 Jan 2023 07:05:48 +0000 (16:05 +0900)
Libsensor API name is changed
sensord_set_attribute_int -> sensord_listener_set_attribute_int

Change-Id: I1c2ca5f266cbef9f48474e0fc2d92b678e0441ea
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
src/SensorAdapter.cpp

index ffa99ae..762bcf1 100644 (file)
@@ -49,14 +49,14 @@ void SensorAdapter::setPowerSave(bool ps)
        if (__sensorHandle < 0)
                return;
 
-       sensord_set_attribute_int(__sensorHandle, SENSORD_ATTRIBUTE_PAUSE_POLICY,
+       sensord_listener_set_attribute_int(__sensorHandle, SENSORD_ATTRIBUTE_PAUSE_POLICY,
                        __powerSave ? SENSORD_PAUSE_ALL : SENSORD_PAUSE_NONE);
 }
 
 void SensorAdapter::setAttribute(int key, int value)
 {
        IF_FAIL_VOID_TAG(__sensorHandle >= 0, _W, "Sensor not started");
-       sensord_set_attribute_int(__sensorHandle, key, value);
+       sensord_listener_set_attribute_int(__sensorHandle, key, value);
 }
 
 bool SensorAdapter::start()