diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2018-05-07 16:22:23 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-05-09 11:21:30 -0700 |
commit | 6c78f0fae7c680a8ff1c77918f7f36b5d15e34e9 (patch) | |
tree | 22a4425102d66e9be34f85de1c5e9f5bb533c3be /include/fpsensor.h | |
parent | 8c4713e4b7e64d46356ebffa6c2ae50f8cb47b7d (diff) | |
download | chrome-ec-6c78f0fae7c680a8ff1c77918f7f36b5d15e34e9.tar.gz |
fpsensor: export matched finger index
Update the fingerprint match event to include the index of the template
which matched.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=poppy
BUG=b:77516790
TEST=on ZerbleBarn, enroll 5 fingers and do matching from the console,
see the proper finger index in the trace.
TEST=on Meowth, check unmodified biod still works for match with the
updated MCU firmware.
CQ-DEPEND=CL:*621808
Change-Id: I5be77ba65ce232989606274aba9a6c20841d533c
Reviewed-on: https://chromium-review.googlesource.com/1047267
Commit-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Diffstat (limited to 'include/fpsensor.h')
-rw-r--r-- | include/fpsensor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/fpsensor.h b/include/fpsensor.h index 5fc7f3b584..bf1c8195ea 100644 --- a/include/fpsensor.h +++ b/include/fpsensor.h @@ -102,6 +102,7 @@ int fp_sensor_acquire_image_with_mode(uint8_t *image_data, int mode); * @param templ a pointer to the array of template buffers. * @param templ_count the number of buffers in the array of templates. * @param image the buffer containing the finger image + * @param match_index index of the matched finger in the template array if any. * @param update_bitmap contains one bit per template, the bit is set if the * match has updated the given template. * @return negative value on error, else one of the following code : @@ -116,7 +117,7 @@ int fp_sensor_acquire_image_with_mode(uint8_t *image_data, int mode); * due to finger covering too little area of the sensor */ int fp_finger_match(void *templ, uint32_t templ_count, uint8_t *image, - uint32_t *update_bitmap); + int32_t *match_index, uint32_t *update_bitmap); /* * Start a finger enrollment session. |