diff options
author | Samer Diab (S.a.M.e.R_d) <remasdiab@gmail.com> | 2014-01-07 21:18:47 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit> | 2014-02-06 20:27:28 +0100 |
commit | 71e9b049c21fb01d558f49844d17e792c347a930 (patch) | |
tree | a150e27f45af15339211d6f8333c6a03dba0b412 /minuitwrp/events.c | |
parent | Merge "Load RTC offset on Qualcomm Krait chips, fixes the broken time & date" into android-4.4 (diff) | |
download | android_bootable_recovery-71e9b049c21fb01d558f49844d17e792c347a930.tar android_bootable_recovery-71e9b049c21fb01d558f49844d17e792c347a930.tar.gz android_bootable_recovery-71e9b049c21fb01d558f49844d17e792c347a930.tar.bz2 android_bootable_recovery-71e9b049c21fb01d558f49844d17e792c347a930.tar.lz android_bootable_recovery-71e9b049c21fb01d558f49844d17e792c347a930.tar.xz android_bootable_recovery-71e9b049c21fb01d558f49844d17e792c347a930.tar.zst android_bootable_recovery-71e9b049c21fb01d558f49844d17e792c347a930.zip |
Diffstat (limited to '')
-rw-r--r-- | minuitwrp/events.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |