Add sense off process to enter the idle process.

Add sense off process berfore sense on to avoid
the problem that tp firmware cannot exit the
gesture mode normally.

Change-Id: Ibb7a8572c168f8c4427c868fd8075ea086138243
Reviewed-on: https://gerrit.mot.com/1973335
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong20 2021-06-08 16:56:37 +08:00 • committed by litong
commit 38f8cc8aae

View file

@ -3518,6 +3518,10 @@ static int fts_mode_handler(struct fts_ts_info *info, int force)
__func__);
}
#endif
logError(1, "%s %s: Sense OFF!\n", tag, __func__);
res |= setScanMode(SCAN_MODE_ACTIVE, 0x00);
/* if some selective scan want to be enabled can be done an or
* of the following options */
/* settings[0] = ACTIVE_MULTI_TOUCH | ACTIVE_KEY | ACTIVE_HOVER