summaryrefslogtreecommitdiff
path: root/src/controller.c
diff options
context:
space:
mode:
authorJin Yoon <jinny.yoon@samsung.com>2017-07-12 20:03:23 +0900
committerJin Yoon <jinny.yoon@samsung.com>2017-07-12 20:03:23 +0900
commit914824c907822f61ac274bf977ab544e1b9a0dac (patch)
tree55bdaaa97861f0b64e57103734a7ec9be8f790a5 /src/controller.c
parentfe280c315017adbb5994ff99971dce680205d1f3 (diff)
downloadrcc-914824c907822f61ac274bf977ab544e1b9a0dac.tar.gz
rcc-914824c907822f61ac274bf977ab544e1b9a0dac.tar.bz2
rcc-914824c907822f61ac274bf977ab544e1b9a0dac.zip
Do not open functions for closing GPIO
Change-Id: I98044ce96dfdde8273a585a4db11b0cc4798f6a8
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/controller.c b/src/controller.c
index 69a040e..b84b259 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -108,9 +108,7 @@ static void service_app_terminate(void *data)
ecore_timer_del(ad->getter_timer[i]);
}
}
- resource_close_infrared_motion_sensor(GPIO_INFRARED_MOTION_NUM_1);
- resource_close_ultrasonic_sensor(GPIO_ULTRASONIC_TRIG_NUM_1, GPIO_ULTRASONIC_ECHO_NUM_1);
- resource_close_illuminance_sensor();
+ resource_close_all();
free(ad);
}