From: j-zero.hwang Date: Fri, 22 Mar 2013 01:01:49 +0000 (+0900) Subject: move exception handling that process auto level value when create effect is called... X-Git-Tag: 2.1b_release~7 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fsystem%2Fhaptic-module-tizen.git;a=commitdiff_plain;h=dce98b4a52014a804fd043df495c7744616a9188 move exception handling that process auto level value when create effect is called to libhaptic. Change-Id: Id932621e12f0d0d5aa93c63f5cfcf5679465943b --- diff --git a/tizen/DEVICE/src/haptic_module_internal.c b/tizen/DEVICE/src/haptic_module_internal.c index 4c9f45f..863d69b 100644 --- a/tizen/DEVICE/src/haptic_module_internal.c +++ b/tizen/DEVICE/src/haptic_module_internal.c @@ -478,13 +478,7 @@ static int _create_effect(unsigned char *vibe_buffer, int max_bufsize, haptic_mo MODULE_LOG("effect count : %d", max_elemcnt); for (i = 0; i < max_elemcnt; ++i) { elem.duration = elem_arr[i].haptic_duration; - if (elem_arr[i].haptic_level == HAPTIC_FEEDBACK_AUTO) { - vconf_get_int(VCONFKEY_SETAPPL_TOUCH_FEEDBACK_VIBRATION_LEVEL_INT, &elem_arr[i].haptic_level); - elem.level = elem_arr[i].haptic_level*20; - } - else { - elem.level = elem_arr[i].haptic_level; - } + elem.level = elem_arr[i].haptic_level; MODULE_LOG("%d) duration : %d, level : %d", i, elem_arr[i].haptic_duration, elem_arr[i].haptic_level); status = InsertHapticElement(vibe_buffer, max_bufsize, &elem);