summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjunkyu han <junkyu.han@samsung.com>2017-07-19 10:02:49 +0900
committerjunkyu han <junkyu.han@samsung.com>2017-07-19 10:02:49 +0900
commitc6e32131429c12efeff38ea95137d5f32f21a79c (patch)
treeaf992b3ddd04c91d2b30df2ead2dcd02273c4641
parent279e3d4aa96459a83ef28909e6a05ac0023c8cfd (diff)
downloadposition-finder-server-c6e32131429c12efeff38ea95137d5f32f21a79c.tar.gz
position-finder-server-c6e32131429c12efeff38ea95137d5f32f21a79c.tar.bz2
position-finder-server-c6e32131429c12efeff38ea95137d5f32f21a79c.zip
Fix wrong word and change double->float
Change-Id: I976980e550186d7fc413d8001df53ebd40c74340
-rw-r--r--src/controller.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/controller.c b/src/controller.c
index d551c30..4d8e88d 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -94,7 +94,7 @@ static Eina_Bool _illuminance_getter_timer(void *data)
int value = 0;
retv_if(resource_read_illuminance_sensor(I2C_BUS_1, &value) == -1, ECORE_CALLBACK_CANCEL);
- _I("Ultra Sonic Distance is [%d lux]", value);
+ _I("Illuminance sensor is [%d lux]", value);
return ECORE_CALLBACK_RENEW;
}
@@ -111,7 +111,7 @@ static bool service_app_create(void *data)
if (ret == -1) _E("Cannot broadcast resource");
#if USE_MULTIPLE_SENSOR
- ad->getter_timer[GPIO_INFRARED_MOTION_NUM_1] = ecore_timer_add(3.0, _infrared_motion_getter_timer, ad);
+ ad->getter_timer[GPIO_INFRARED_MOTION_NUM_1] = ecore_timer_add(3.0f, _infrared_motion_getter_timer, ad);
if (!ad->getter_timer[GPIO_INFRARED_MOTION_NUM_1]) {
_E("Failed to add infrared motion getter timer");
return false;
@@ -125,16 +125,16 @@ static bool service_app_create(void *data)
}
/* Two Pins Sensor */
- ad->getter_timer[GPIO_ULTRASONIC_TRIG_NUM_1] = ecore_timer_add(1.0, _ultrasonic_getter_timer, ad);
+ ad->getter_timer[GPIO_ULTRASONIC_TRIG_NUM_1] = ecore_timer_add(1.0f, _ultrasonic_getter_timer, ad);
if (!ad->getter_timer[GPIO_ULTRASONIC_TRIG_NUM_1]) {
_D("Failed to add ultra sonic getter timer");
return false;
}
/* I2C Protocol Sensor */
- ad->getter_timer[I2C_ILLUMINANCE_FIRST_PIN_1] = ecore_timer_add(1.0, _illuminance_getter_timer, ad);
+ ad->getter_timer[I2C_ILLUMINANCE_FIRST_PIN_1] = ecore_timer_add(1.0f, _illuminance_getter_timer, ad);
if (!ad->getter_timer[I2C_ILLUMINANCE_FIRST_PIN_1]) {
- _D("Failed to add ultra sonic getter timer");
+ _D("Failed to add illuminance getter timer");
return false;
}
#endif