summaryrefslogtreecommitdiff
path: root/common/fpsensor.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2018-05-15 16:26:31 +0200
committerchrome-bot <chrome-bot@chromium.org>2018-05-16 12:41:30 -0700
commitd9354c9cd980ce2d57b8b4ccdad921054579ae99 (patch)
tree691a4e955e74cd2308570450e849f19f898381b1 /common/fpsensor.c
parentd95964b670b7a5b53faba09b44b6ea89e1fdc66d (diff)
downloadchrome-ec-d9354c9cd980ce2d57b8b4ccdad921054579ae99.tar.gz
fpsensor: add capture type for reset pixel test
Add the FP_CAPTURE_RESET_TEST capture mode to be able to perform the reset pixel values test. Update ectool accordingly and also remove the deprecated 'fpcheckpixels' command. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=poppy BUG=b:78597564 TEST=run 'ectool --name=cros_fp fpmode capture test_reset', then 'ectool --name=cros_fp fpframe > test.pnm' CQ-DEPEND=CL:*626747 Change-Id: I183f33b1cb9ba4db67219b8f7740d29dc0551f2d Reviewed-on: https://chromium-review.googlesource.com/1061074 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'common/fpsensor.c')
-rw-r--r--common/fpsensor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/fpsensor.c b/common/fpsensor.c
index 3986a6d25f..dc00a523dc 100644
--- a/common/fpsensor.c
+++ b/common/fpsensor.c
@@ -102,7 +102,8 @@ static inline int is_test_capture(uint32_t mode)
return (mode & FP_MODE_CAPTURE)
&& (capture_type == FP_CAPTURE_PATTERN0
- || capture_type == FP_CAPTURE_PATTERN1);
+ || capture_type == FP_CAPTURE_PATTERN1
+ || capture_type == FP_CAPTURE_RESET_TEST);
}
/*