summaryrefslogtreecommitdiff
path: root/vibrator/drv2624/Vibrator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vibrator/drv2624/Vibrator.cpp')
-rw-r--r--vibrator/drv2624/Vibrator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/vibrator/drv2624/Vibrator.cpp b/vibrator/drv2624/Vibrator.cpp
index 54a31cc..7a1069d 100644
--- a/vibrator/drv2624/Vibrator.cpp
+++ b/vibrator/drv2624/Vibrator.cpp
@@ -351,6 +351,10 @@ Vibrator::Vibrator(std::unique_ptr<HwApi> hwapi, std::unique_ptr<HwCal> hwcal)
mHwCal->getSteadyAmpMax(&tempAmpMax)
? round((STEADY_TARGET_G[0] / tempAmpMax) * longVoltageMax)
: longVoltageMax;
+ mSteadyTargetOdClamp[2] =
+ mHwCal->getSteadyAmpMax(&tempAmpMax)
+ ? round((STEADY_TARGET_G[2] / tempAmpMax) * longVoltageMax)
+ : longVoltageMax;
}
mHwCal->getSteadyShape(&shape);
mSteadyConfig.reset(new VibrationConfig({