This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hardware_oplus-CherishOS/KeyHandler/tri-state-key-calibrate.sh
LuK1337 99f10d3d04 KeyHandler: Adjust for Oplus
Change-Id: Icc5e6583f48756fc765970c9e7a0f27425f37105
2022-04-11 18:17:39 +02:00

7 lines
288 B
Bash

#!/vendor/bin/sh
if [[ -f /mnt/vendor/persist/engineermode/tri_state_hall_data ]]; then
CALIBRATION_DATA="$(cat /mnt/vendor/persist/engineermode/tri_state_hall_data)"
CALIBRATION_DATA="${CALIBRATION_DATA//;/,}"
echo -n $CALIBRATION_DATA > /proc/tristatekey/hall_data_calib
fi