From 53c0a3b10c0ba42b50094a4423bc2a1d191e5a08 Mon Sep 17 00:00:00 2001 From: Jens Andersen Date: Sat, 27 Oct 2018 15:53:55 +0200 Subject: [PATCH] yoshino: Print more print identify details --- fpc_imp_yoshino_nile.c | 5 +++++ tz_api_yoshino.h | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/fpc_imp_yoshino_nile.c b/fpc_imp_yoshino_nile.c index 71d211d..41abd4b 100644 --- a/fpc_imp_yoshino_nile.c +++ b/fpc_imp_yoshino_nile.c @@ -488,6 +488,11 @@ err_t fpc_auth_step(fpc_imp_data_t *data, uint32_t *print_id) } ALOGD("Print identified as %d\n", identify_cmd.id); +#if defined(USE_FPC_YOSHINO) + ALOGD("res: %d cov: %d, qual: %d, covered zones: %d, score: %d, idx: %u\n", + identify_cmd.res, identify_cmd.coverage, identify_cmd.qual, identify_cmd.covered_zones, + identify_cmd.score, identify_cmd.idx); +#endif *print_id = identify_cmd.id; return identify_cmd.status; diff --git a/tz_api_yoshino.h b/tz_api_yoshino.h index e588d48..7318217 100644 --- a/tz_api_yoshino.h +++ b/tz_api_yoshino.h @@ -170,7 +170,12 @@ typedef struct { uint32_t command; int32_t status; uint32_t id; - uint32_t unk1[2]; + uint32_t coverage; + uint32_t qual; + uint32_t covered_zones; + uint32_t res; + uint32_t score; + uint32_t idx; } fpc_send_identify_t; typedef struct {