summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2019-11-22 11:37:24 +0800
committerCyan_Hsieh <cyanhsieh@google.com>2020-05-29 21:19:54 +0800
commit6efd6a14e1325bae441e45c7229294ccdf2992be (patch)
tree5e56f827eaf1646163b9d6343bb852f4cba5a035 /dumpstate
parent467876afbb66b318b27918752019c9f68f03c880 (diff)
downloadredfin-6efd6a14e1325bae441e45c7229294ccdf2992be.tar.gz
redfin: dumpstate: adjust touch snapshoots sequence
Bug: 144538796 Test: check bugreport for touch snapshots Change-Id: If72c659349895146bf0b7d37ab5616f372552788 Signed-off-by: Super Liu <supercjliu@google.com>
Diffstat (limited to 'dumpstate')
-rwxr-xr-xdumpstate/DumpstateDevice.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp
index 718359a..09a22e3 100755
--- a/dumpstate/DumpstateDevice.cpp
+++ b/dumpstate/DumpstateDevice.cpp
@@ -274,40 +274,40 @@ static void DumpTouch(int fd) {
snprintf(cmd, sizeof(cmd), "%s/status", touch_spi_path);
DumpFileToFd(fd, "LSI touch status", cmd);
- //Raw data
+ //Mutual strength
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
- "run_rawdata_read_all",
+ "run_delta_read_all",
touch_spi_path, touch_spi_path);
- RunCommandToFd(fd, "Mutual Raw Data", {"/vendor/bin/sh", "-c", cmd});
+ RunCommandToFd(fd, "Mutual Strength", {"/vendor/bin/sh", "-c", cmd});
- //Raw cap
+ //Self strength
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
- "run_rawcap_read_all",
+ "run_self_delta_read_all",
touch_spi_path, touch_spi_path);
- RunCommandToFd(fd, "Mutual Raw Cap", {"/vendor/bin/sh", "-c", cmd});
+ RunCommandToFd(fd, "Self Strength", {"/vendor/bin/sh", "-c", cmd});
- //Mutual strength
+ //Raw cap
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
- "run_delta_read_all",
+ "run_rawcap_read_all",
touch_spi_path, touch_spi_path);
- RunCommandToFd(fd, "Mutual Strength", {"/vendor/bin/sh", "-c", cmd});
+ RunCommandToFd(fd, "Mutual Raw Cap", {"/vendor/bin/sh", "-c", cmd});
- //Self raw
+ //Self raw cap
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
"run_self_rawcap_read_all",
touch_spi_path, touch_spi_path);
RunCommandToFd(fd, "Self Raw", {"/vendor/bin/sh", "-c", cmd});
- //Self strength
+ //Raw data
snprintf(cmd, sizeof(cmd),
"echo %s > %s/cmd && cat %s/cmd_result",
- "run_self_delta_read_all",
+ "run_rawdata_read_all",
touch_spi_path, touch_spi_path);
- RunCommandToFd(fd, "Self Strength", {"/vendor/bin/sh", "-c", cmd});
+ RunCommandToFd(fd, "Mutual Raw Data", {"/vendor/bin/sh", "-c", cmd});
//Disable: force touch active
snprintf(cmd, sizeof(cmd),