diff options
author | Tom Hughes <tomhughes@chromium.org> | 2018-12-04 15:11:33 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2019-05-07 13:01:55 +0000 |
commit | 1c611a246e6edc0793262c6188d3752146d364ff (patch) | |
tree | d99526cf2c13090f096e37d0ee21ff845e04de7b | |
parent | fe00f15d2e3ec64373d1395abffa730b63ae7545 (diff) | |
download | chrome-ec-1c611a246e6edc0793262c6188d3752146d364ff.tar.gz |
Add fingerprint match code for no template case
In the case where there are no templates to match against, we now return
EC_MKBP_FP_ERR_MATCH_NO_TEMPLATES to distinguish between other error
cases.
BRANCH=nocturne
BUG=b:120305002
TEST=enroll and unlock with updated firmware and biod
TEST=delete enrolled fingerprint and verify logs when touching sensor
Change-Id: If0d37d0cdb0792254b89814ac473fb6d1830f3cb
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1361814
Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1557843
Tested-by: Yong Hong <yhong@google.com>
Commit-Queue: Yong Hong <yhong@google.com>
-rw-r--r-- | include/ec_commands.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 4f5ad349c2..fb11b03f49 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -3324,6 +3324,7 @@ struct __ec_align2 ec_response_keyboard_factory_test { /* code given by EC_MKBP_FP_ERRCODE() when EC_MKBP_FP_MATCH is set */ #define EC_MKBP_FP_ERR_MATCH_NO 0 #define EC_MKBP_FP_ERR_MATCH_NO_INTERNAL 6 +#define EC_MKBP_FP_ERR_MATCH_NO_TEMPLATES 7 #define EC_MKBP_FP_ERR_MATCH_NO_LOW_QUALITY 2 #define EC_MKBP_FP_ERR_MATCH_NO_LOW_COVERAGE 4 #define EC_MKBP_FP_ERR_MATCH_YES 1 |