Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit aa449c9c authored by Michael Wright's avatar Michael Wright
Browse files

Scale the pressure range's max value.

Since the pressure scale is configurable via a idc property, it isn't
guaranteed to always be [0, 1.0]. Unfortunately, we didn't scale the max
value of the MotionRange so we'd incorrectly return a max pressure of
1.0 for all devices, even when they might exceed that range.

Test: adb push \
    $(gettop)/out/target/product/taimen/data/nativetest/inputflinger_tests/InputReader_test \
    /data/nativetest/inputflinger_tests/InputReader_test &&
    adb shell /data/nativetest/inputflinger_tests/InputReader_test

Change-Id: I7ef174941c4faa7d7efdaa3d69107740f58afd2a
parent 3a74e142
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment