From 7bd22b0eb6c2801fbb93cb61e9751fb9394e09ea Mon Sep 17 00:00:00 2001 From: Tim Zimmermann Date: Tue, 23 Nov 2021 21:50:14 +0100 Subject: [PATCH] aidl: vibrator: improve amplitude values Change-Id: Ic1c08841e00a927c138663880f4e6361e59453bd --- aidl/vibrator/Vibrator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aidl/vibrator/Vibrator.cpp b/aidl/vibrator/Vibrator.cpp index df2ed907..f21eee31 100644 --- a/aidl/vibrator/Vibrator.cpp +++ b/aidl/vibrator/Vibrator.cpp @@ -242,11 +242,11 @@ uint8_t Vibrator::strengthToAmplitude(EffectStrength strength, ndk::ScopedAStatu switch (strength) { case EffectStrength::LIGHT: - return 78; + return 64; case EffectStrength::MEDIUM: return 128; case EffectStrength::STRONG: - return 204; + return 255; } *status = ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION);