Return valid handle in vibrate_monotone 27/142027/2
authorpr.jung <pr.jung@samsung.com>
Wed, 2 Aug 2017 08:30:02 +0000 (17:30 +0900)
committerJung <pr.jung@samsung.com>
Fri, 11 Aug 2017 07:27:09 +0000 (07:27 +0000)
Change-Id: I513fc57e25782ff7a3d8153be7fb764f98efb1c6
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/haptic/circle.c

index ec00101..2d99195 100644 (file)
@@ -227,6 +227,8 @@ static int vibrate_monotone(int device_handle, int duration, int feedback, int p
        }
 
        _D("device handle %d %dms", device_handle, duration);
+       if (effect_handle)
+               *effect_handle = device_handle;
 
        return 0;
 }