Change-Id: Ia7f9dc80a77e9a90df8f58219a568c56850ceff1
Signed-off-by: pr.jung <pr.jung@samsung.com>
state = false;
return false;
}
- if(peripheral_i2c_read_register_byte(handle, DRV2605L_REGISTER_STATUS, &result) < PERIPHERAL_ERROR_NONE) {
+ if (peripheral_i2c_read_register_byte(handle, DRV2605L_REGISTER_STATUS, &result) < PERIPHERAL_ERROR_NONE) {
_E("Failed to read peripheral I2C");
if (peripheral_i2c_close(handle) < PERIPHERAL_ERROR_NONE)
_E("Failed to close peripheral I2C");
duration_timer = ecore_timer_add((node->duration + node->wait)/1000.0f, haptic_duration_play, NULL);
ret = real_vibrate_monotone(h_data->handle, node->duration, h_data->level, h_data->priority, NULL);
- if (!next) {
+ if (!next)
goto out;
- }
+
break;
}
if (ret != 0) {