From 6b0a707c349d917918af1b029bb13fae52b14e8e Mon Sep 17 00:00:00 2001 From: Eunyoung Lee Date: Thu, 12 Oct 2017 19:46:23 +0900 Subject: [PATCH] Fix details for Challenge Change-Id: Id55c6b38dbadd1285fec357520e2897fd1aadea9 --- src/connectivity.c | 2 +- src/controller.c | 2 ++ src/resource/resource_ultrasonic_sensor.c | 2 +- tizen-manifest.xml | 26 +++++++++++++------------- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/connectivity.c b/src/connectivity.c index 214702f..94e4845 100644 --- a/src/connectivity.c +++ b/src/connectivity.c @@ -262,7 +262,7 @@ int connectivity_notify_double(connectivity_resource_s *resource_info, const cha retv_if(!resource_info, -1); retv_if(!resource_info->observers, -1); - _D("Notify the value[%f]", value); + _D("Notify the value [%f]\n", value); representation = _create_representation_with_double(resource_info, key, value); retv_if(!representation, -1); diff --git a/src/controller.c b/src/controller.c index d78ec71..6cbc13e 100644 --- a/src/controller.c +++ b/src/controller.c @@ -53,6 +53,8 @@ typedef struct app_data_s { static void _ultrasonic_sensor_read_cb(float value, void *data) { + app_data *ad = data; + /** * TODO: Send the value of the ultrasonic sensor to the Client. */ diff --git a/src/resource/resource_ultrasonic_sensor.c b/src/resource/resource_ultrasonic_sensor.c index 550caf6..14e4b3d 100644 --- a/src/resource/resource_ultrasonic_sensor.c +++ b/src/resource/resource_ultrasonic_sensor.c @@ -71,7 +71,7 @@ static void _resource_read_ultrasonic_sensor_cb(peripheral_gpio_h gpio, peripher if (prev > 0 && value == 0) { dist = now - prev; dist = (dist * 34300) / 2000000; - _I("Measured Distance : %0.2fcm\n", dist); + _I("Measured Distance : %0.2fcm", dist); resource_read_info->cb(dist, resource_read_info->data); peripheral_gpio_unset_interrupted_cb(resource_get_info(resource_read_info->pin_num)->sensor_h); diff --git a/tizen-manifest.xml b/tizen-manifest.xml index 43520f6..8bdb662 100644 --- a/tizen-manifest.xml +++ b/tizen-manifest.xml @@ -1,13 +1,13 @@ - - - - - - default_icon.png - - - http://tizen.org/privilege/appdir.shareddata - http://tizen.org/privilege/network.get - http://tizen.org/privilege/internet - - + + + + + + default_icon.png + + + http://tizen.org/privilege/appdir.shareddata + http://tizen.org/privilege/network.get + http://tizen.org/privilege/internet + + -- 2.7.4