summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkibak.yoon <kibak.yoon@samsung.com>2017-09-22 20:30:15 +0900
committerKibak Yoon <kibak.yoon@samsung.com>2017-09-26 02:37:04 +0000
commit303d7c027b689191868b5c87e4fc7dbaf2990f9a (patch)
tree0706a3ec85d088b6d98640e428d0adb2178c170a
parent266fe968be8d3f6cf2b270b63183df9ab17954c1 (diff)
downloadthing-toggler-accepted/tizen_unified.tar.gz
thing-toggler-accepted/tizen_unified.tar.bz2
thing-toggler-accepted/tizen_unified.zip
- change PERIPHERAL_GPIO_DIRECTION_OUT to PERIPHERAL_GPIO_DIRECTION_OUT_INITIALLY_LOW Change-Id: I321007b313e305af1ccf0e4cffddf1fae5b91e20 Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
-rw-r--r--src/thing_toggler.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/thing_toggler.c b/src/thing_toggler.c
index f45a1f9..6442f33 100644
--- a/src/thing_toggler.c
+++ b/src/thing_toggler.c
@@ -40,14 +40,14 @@ bool service_app_create(void *data)
app_data *ad = (app_data *)data;
int ret = 0;
- // Todo: add your code here.
+ // Todo: add your code here.
peripheral_gpio_open(GPIO_NUM, &ad->gpio);
if (!ad->gpio) {
dlog_print(DLOG_ERROR, LOG_TAG, "The return value of peripheral_gpio_open is null.");
return false;
}
- ret = peripheral_gpio_set_direction(ad->gpio, PERIPHERAL_GPIO_DIRECTION_OUT);
+ ret = peripheral_gpio_set_direction(ad->gpio, PERIPHERAL_GPIO_DIRECTION_OUT_INITIALLY_LOW);
if (ret != 0) {
dlog_print(DLOG_ERROR, LOG_TAG, "Cannot set direction error.");
return false;
@@ -60,13 +60,13 @@ bool service_app_create(void *data)
return false;
}
- return true;
+ return true;
}
void service_app_terminate(void *data)
{
app_data *ad = (app_data *)data;
- // Todo: add your code here.
+ // Todo: add your code here.
ecore_timer_del(ad->on_off_timer);
peripheral_gpio_close(ad->gpio);
@@ -75,7 +75,7 @@ void service_app_terminate(void *data)
void service_app_control(app_control_h app_control, void *data)
{
- // Todo: add your code here.
+ // Todo: add your code here.
}
static void service_app_lang_changed(app_event_info_h event_info, void *user_data)