diff options
author | Dees Troy <dees_troy@teamw.in> | 2014-02-07 19:38:55 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit> | 2014-02-07 19:38:55 +0100 |
commit | 50b24dd57c4266a34d238b2e7e3278312a685b2d (patch) | |
tree | 0c7be37f026aa24597356f26e0e6542aa5cf06fd /minuitwrp/events.c | |
parent | Disable alpha blending for non-transparent bitmaps (diff) | |
parent | Add haptic feedback (diff) | |
download | android_bootable_recovery-50b24dd57c4266a34d238b2e7e3278312a685b2d.tar android_bootable_recovery-50b24dd57c4266a34d238b2e7e3278312a685b2d.tar.gz android_bootable_recovery-50b24dd57c4266a34d238b2e7e3278312a685b2d.tar.bz2 android_bootable_recovery-50b24dd57c4266a34d238b2e7e3278312a685b2d.tar.lz android_bootable_recovery-50b24dd57c4266a34d238b2e7e3278312a685b2d.tar.xz android_bootable_recovery-50b24dd57c4266a34d238b2e7e3278312a685b2d.tar.zst android_bootable_recovery-50b24dd57c4266a34d238b2e7e3278312a685b2d.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; |