redfin: dumpstate: collect touch calibration info

Bug: 145262526
Test: check bugreport for touch snapshots
Change-Id: I0760eafcd0b9a395a00112eb7f9b7fc280945e91
This commit is contained in:
Super Liu 2019-11-27 17:28:21 +08:00 committed by Cyan_Hsieh
parent 224f68b3b5
commit 7f3d415097
1 changed files with 8 additions and 1 deletions

View File

@ -274,7 +274,14 @@ static void DumpTouch(int fd) {
snprintf(cmd, sizeof(cmd), "%s/status", touch_spi_path);
DumpFileToFd(fd, "LSI touch status", cmd);
//Mutual strength
//Calibration info
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"get_mis_cal_info",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "Calibration info", {"/vendor/bin/sh", "-c", cmd});
//Mutual strength
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_delta_read_all",