Merged changes from commit b2f48def26 to Arduino_Lib
This commit is contained in:
parent
bdc16ba21b
commit
a0cf9ce125
@ -106,7 +106,7 @@ void loop() {
|
|||||||
current_id = 0;
|
current_id = 0;
|
||||||
}
|
}
|
||||||
res = bep_identify_finger(&hcp_chain, 0, &template_id, &match);
|
res = bep_identify_finger(&hcp_chain, 0, &template_id, &match);
|
||||||
if (res == FPC_BEP_RESULT_TIMEOUT) {
|
if (res == FPC_BEP_RESULT_TIMEOUT || res == FPC_BEP_RESULT_IO_ERROR) {
|
||||||
platform_bmlite_reset();
|
platform_bmlite_reset();
|
||||||
} else if (res != FPC_BEP_RESULT_OK) {
|
} else if (res != FPC_BEP_RESULT_OK) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -152,8 +152,12 @@ fpc_bep_result_t bep_capture(HCP_comm_t *chain, uint16_t timeout)
|
|||||||
chain->phy_rx_timeout = timeout;
|
chain->phy_rx_timeout = timeout;
|
||||||
for(int i=0; i< MAX_SINGLE_CAPTURE_ATTEMPTS; i++) {
|
for(int i=0; i< MAX_SINGLE_CAPTURE_ATTEMPTS; i++) {
|
||||||
bep_result = bmlite_send_cmd_arg(chain, CMD_CAPTURE, ARG_NONE, ARG_TIMEOUT, &timeout, sizeof(timeout));
|
bep_result = bmlite_send_cmd_arg(chain, CMD_CAPTURE, ARG_NONE, ARG_TIMEOUT, &timeout, sizeof(timeout));
|
||||||
|
if(bep_result == FPC_BEP_RESULT_IO_ERROR ||
|
||||||
|
bep_result == FPC_BEP_RESULT_TIMEOUT) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
if( !(bep_result || chain->bep_result))
|
if( !(bep_result || chain->bep_result))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
chain->phy_rx_timeout = prev_timeout;
|
chain->phy_rx_timeout = prev_timeout;
|
||||||
bmlite_on_finish_capture();
|
bmlite_on_finish_capture();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user