Skip to content

Commit 0c8c024

Browse files
committed
Update FPS_GT511C3.cpp
Fixed a problem in Verify1_1 method that always returns zero for a match.
1 parent 2bf2751 commit 0c8c024

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

FPS_GT511C3.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ int FPS_GT511C3::Verify1_1(int id)
555555
int retval = 0;
556556
if (rp->ACK == false)
557557
{
558+
retval = 3; // set default value of not verified
558559
if (rp->Error == Response_Packet::ErrorCodes::NACK_INVALID_POS) retval = 1;
559560
if (rp->Error == Response_Packet::ErrorCodes::NACK_IS_NOT_USED) retval = 2;
560561
if (rp->Error == Response_Packet::ErrorCodes::NACK_VERIFY_FAILED) retval = 3;

0 commit comments

Comments
 (0)