Fix noise test case fail of factory test

Fix noise test case fail of factory test,still go on noise testing when
noise data check sum error.

Change-Id: I58fb65cb568758c250f7bcbf5ca7f7339ab2ac4a
Signed-off-by: Wenge Zhu <zhuwg1@motorola.com>
Reviewed-on: https://gerrit.mot.com/2360618
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Wenge Zhu 2022-08-11 18:03:36 +08:00 • committed by zhuwg1
commit a69a9b5793

View file

@ -1653,7 +1653,9 @@ static int goodix_cache_noisedata(struct goodix_ts_test *ts_test)
frame_head = (struct frame_head *)frame_buf;
if (checksum_cmp(frame_buf, frame_head->cur_frame_len, CHECKSUM_MODE_U16_LE)) {
ts_err("frame body checksum error");
#ifndef CONFIG_INPUT_TOUCHSCREEN_MMI
return -EINVAL;
#endif
}
cur_ptr = frame_buf;
cur_ptr += cd->ic_info.misc.frame_data_head_len;