summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoYeoN SoN <boyeonson@BoYeoNs-MacBook-Air.local>2019-08-24 14:17:07 +0900
committerBoYeoN SoN <boyeonson@BoYeoNs-MacBook-Air.local>2019-08-24 14:17:07 +0900
commit0c74de1546138b63d781ed79342f17015f3e9073 (patch)
treec75162c6a518333363e0f8fd95caa75b25b46117
parent71be3d8daf587a2a5221dcda7d16227577bd8578 (diff)
downloadst-things-light-0c74de1546138b63d781ed79342f17015f3e9073.tar.gz
st-things-light-0c74de1546138b63d781ed79342f17015f3e9073.tar.bz2
st-things-light-0c74de1546138b63d781ed79342f17015f3e9073.zip
Change log texts
Change-Id: I2c0f10c5de1f0f22633db3957ec60411cfbe9948
-rwxr-xr-xsrc/controller.c5
-rwxr-xr-xsrc/resource/resource_led.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/controller.c b/src/controller.c
index 83d2f25..5700c0d 100755
--- a/src/controller.c
+++ b/src/controller.c
@@ -43,14 +43,15 @@ static int _change_led_state(int state) {
_E("cannot write led data");
return -1;
}
- _I("LED : %d",state);
+
+ _I("LED State : %s", state ? "ON":"OFF");
return 0;
}
static void motion_interrupted_cb(uint32_t motion_value, void *user_data)
{
- _D("Detected motion value is: %u", motion_value);
+ _I("Detected motion value : %u", motion_value);
// Set LED light with value
_change_led_state(motion_value);
diff --git a/src/resource/resource_led.c b/src/resource/resource_led.c
index 53bc8a5..cc4dca6 100755
--- a/src/resource/resource_led.c
+++ b/src/resource/resource_led.c
@@ -88,7 +88,5 @@ int resource_write_led(int pin_num, int write_value)
ret = peripheral_gpio_write(g_sensor_h, write_value);
retv_if(ret < 0, -1);
- _I("LED Value : %s", write_value ? "ON":"OFF");
-
return 0;
}