From f9464bb3538987f247a8a270c0f5773706d008ca Mon Sep 17 00:00:00 2001 From: Simon1511 Date: Mon, 18 Jul 2022 16:36:13 +0200 Subject: [PATCH] sm7125: vibrator: Decrease intensity Change-Id: I08dd43fc76a0e77a9a670b6488e5c4231d2e5e7d --- vibrator/Vibrator.cpp | 2 +- vibrator/Vibrator.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vibrator/Vibrator.cpp b/vibrator/Vibrator.cpp index 215d339..7c06f23 100644 --- a/vibrator/Vibrator.cpp +++ b/vibrator/Vibrator.cpp @@ -232,7 +232,7 @@ ndk::ScopedAStatus Vibrator::activate(uint32_t timeoutMs) { /* We mostly get values that are 20ms and lower, but that's not enough to be actually noticeable. Set it to - 40ms if timeoutMs is less than that. */ + 30ms if timeoutMs is less than that. */ if (timeoutMs < INTENSITY_MIN) { timeoutMs = INTENSITY_MIN; } diff --git a/vibrator/Vibrator.h b/vibrator/Vibrator.h index e9332f2..a9e4ef5 100644 --- a/vibrator/Vibrator.h +++ b/vibrator/Vibrator.h @@ -8,7 +8,7 @@ #include -#define INTENSITY_MIN 40 +#define INTENSITY_MIN 30 #define INTENSITY_MAX 10000 #define INTENSITY_DEFAULT INTENSITY_MAX