haptic: Only need to check whether next node is existed 04/135404/1
authorpr.jung <pr.jung@samsung.com>
Thu, 22 Jun 2017 07:18:41 +0000 (16:18 +0900)
committerpr.jung <pr.jung@samsung.com>
Thu, 22 Jun 2017 07:18:41 +0000 (16:18 +0900)
- If there is next node on vibration_data and waiting time is 0, haptic play should be continued

Change-Id: Ifea12490663f90997b9e19e24036b8693a651abc
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/haptic/standard-vibcore.c

index 4cebcf7..3a828b1 100644 (file)
@@ -205,7 +205,7 @@ static Eina_Bool haptic_duration_play(void *data)
                        break;
                }
 
-               if (node->wait && next) {
+               if (next) {
                        h_data->vibration_data = next;
                        duration_timer = ecore_timer_add((node->duration + node->wait)/1000.0f, haptic_duration_play, (void *)h_data);
                } else