From 71e9b049c21fb01d558f49844d17e792c347a930 Mon Sep 17 00:00:00 2001 From: "Samer Diab (S.a.M.e.R_d)" Date: Tue, 7 Jan 2014 20:18:47 +0000 Subject: Add haptic feedback Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998 --- minuitwrp/events.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'minuitwrp/events.c') diff --git a/minuitwrp/events.c b/minuitwrp/events.c index 73369a2cc..aecaf8f12 100644 --- a/minuitwrp/events.c +++ b/minuitwrp/events.c @@ -106,6 +106,8 @@ int vibrate(int timeout_ms) int fd; int ret; + if (timeout_ms > 10000) timeout_ms = 1000; + fd = open(VIBRATOR_TIMEOUT_FILE, O_WRONLY); if (fd < 0) return -1; -- cgit v1.2.3