input: touchscreen: fts_spi: Don't notify about fod presses when fod_status is off

Change-Id: I4b142853b2674671ff5255d9bacf83ecdd66744e
This commit is contained in:
Arian 2024-03-19 16:08:25 +01:00 committed by Jens Reidel
parent 78340bafe6
commit a7a7b60aa1
No known key found for this signature in database
GPG Key ID: 23C1E5F512C12303

View File

@ -6879,7 +6879,8 @@ static int fts_set_cur_value(int mode, int value)
}
if (mode == THP_FOD_DOWNUP_CTL && fts_info && value >= 0) {
if (fts_info->enable_touch_raw)
if (fts_info->enable_touch_raw &&
(fts_fingerprint_is_enable() || fts_info->fod_pressed))
fts_set_fod_downup(fts_info, value);
return 0;
}