From f813e843fc278807ffe71eafbde1110577cf331a Mon Sep 17 00:00:00 2001 From: "pr.jung" Date: Wed, 2 Aug 2017 17:30:02 +0900 Subject: [PATCH] Return valid handle in vibrate_monotone Change-Id: I513fc57e25782ff7a3d8153be7fb764f98efb1c6 Signed-off-by: pr.jung --- src/haptic/circle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/haptic/circle.c b/src/haptic/circle.c index ec00101..2d99195 100644 --- a/src/haptic/circle.c +++ b/src/haptic/circle.c @@ -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; } -- 2.7.4