Skip to content

Commit b9886ec

Browse files
author
Toni Klopfenstein
committed
Merge git://github.com/fourstix/Fingerprint_Scanner-TTL into fourstix-master
2 parents 1c7588d + 2d38aea commit b9886ec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

FPS_GT511C3/FPS_GT511C3.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ Response_Packet::ErrorCodes::Errors_Enum Response_Packet::ErrorCodes::ParseFromB
121121
if (high == 0x00)
122122
{
123123
}
124-
if (high == 0x01)
125-
{
124+
// grw 01/03/15 - replaced if clause with else clause for any non-zero high byte
125+
// if (high == 0x01)
126+
// {
127+
else {
126128
switch(low)
127129
{
128130
case 0x00: e = NO_ERROR; break;
@@ -555,6 +557,7 @@ int FPS_GT511C3::Verify1_1(int id)
555557
int retval = 0;
556558
if (rp->ACK == false)
557559
{
560+
retval = 3; // grw 01/03/15 - set default value of not verified before assignment
558561
if (rp->Error == Response_Packet::ErrorCodes::NACK_INVALID_POS) retval = 1;
559562
if (rp->Error == Response_Packet::ErrorCodes::NACK_IS_NOT_USED) retval = 2;
560563
if (rp->Error == Response_Packet::ErrorCodes::NACK_VERIFY_FAILED) retval = 3;

0 commit comments

Comments
 (0)