@@ -374,7 +374,8 @@ int FPS_GT511C3::GetEnrollCount()
374374}
375375
376376// checks to see if the ID number is in use or not
377- // Parameter: 0-199
377+ // Parameter: 0-2999, if using GT-521F52
378+ // 0-199, if using GT-521F32/GT-511C3
378379// Return: True if the ID number is enrolled, false if not
379380bool FPS_GT511C3::CheckEnrolled (int id)
380381{
@@ -394,7 +395,8 @@ bool FPS_GT511C3::CheckEnrolled(int id)
394395}
395396
396397// Starts the Enrollment Process
397- // Parameter: 0-199
398+ // Parameter: 0-2999, if using GT-521F52
399+ // 0-199, if using GT-521F32/GT-511C3
398400// Return:
399401// 0 - ACK
400402// 1 - Database is full
@@ -439,6 +441,8 @@ int FPS_GT511C3::Enroll1()
439441 delete packetbytes;
440442 Response_Packet* rp = GetResponse ();
441443 int retval = rp->IntFromParameter ();
444+ // Change to "retval < 3000", if using GT-521F52
445+ // Leave "reval < 200", if using GT-521F32/GT-511C3
442446 if (retval < 200 ) retval = 3 ; else retval = 0 ;
443447 if (rp->ACK == false )
444448 {
@@ -466,6 +470,8 @@ int FPS_GT511C3::Enroll2()
466470 delete packetbytes;
467471 Response_Packet* rp = GetResponse ();
468472 int retval = rp->IntFromParameter ();
473+ // Change to "retval < 3000", if using GT-521F52
474+ // Leave "reval < 200", if using GT-521F32/GT-511C3
469475 if (retval < 200 ) retval = 3 ; else retval = 0 ;
470476 if (rp->ACK == false )
471477 {
@@ -494,7 +500,9 @@ int FPS_GT511C3::Enroll3()
494500 delete packetbytes;
495501 Response_Packet* rp = GetResponse ();
496502 int retval = rp->IntFromParameter ();
497- if (retval < 200 ) retval = 3 ; else retval = 0 ;
503+ // Change to "retval < 3000", if using GT-521F52
504+ // Leave "reval < 200", if using GT-521F32/GT-511C3
505+ if (retval < 200 ) retval = 3 ; else retval = 0 ;
498506 if (rp->ACK == false )
499507 {
500508 if (rp->Error == Response_Packet::ErrorCodes::NACK_ENROLL_FAILED) retval = 1 ;
@@ -527,7 +535,8 @@ bool FPS_GT511C3::IsPressFinger()
527535}
528536
529537// Deletes the specified ID (enrollment) from the database
530- // Parameter: 0-199 (id number to be deleted)
538+ // Parameter: 0-2999, if using GT-521F52 (id number to be deleted)
539+ // 0-199, if using GT-521F32/GT-511C3(id number to be deleted)
531540// Returns: true if successful, false if position invalid
532541bool FPS_GT511C3::DeleteID (int id)
533542{
@@ -563,7 +572,8 @@ bool FPS_GT511C3::DeleteAll()
563572}
564573
565574// Checks the currently pressed finger against a specific ID
566- // Parameter: 0-199 (id number to be checked)
575+ // Parameter: 0-2999, if using GT-521F52 (id number to be checked)
576+ // 0-199, if using GT-521F32/GT-511C3 (id number to be checked)
567577// Returns:
568578// 0 - Verified OK (the correct finger)
569579// 1 - Invalid Position
@@ -594,8 +604,12 @@ int FPS_GT511C3::Verify1_1(int id)
594604
595605// Checks the currently pressed finger against all enrolled fingerprints
596606// Returns:
597- // 0-199: Verified against the specified ID (found, and here is the ID number)
598- // 200: Failed to find the fingerprint in the database
607+ // Verified against the specified ID (found, and here is the ID number)
608+ // 0-2999, if using GT-521F52
609+ // 0-199, if using GT-521F32/GT-511C3
610+ // Failed to find the fingerprint in the database
611+ // 3000, if using GT-521F52
612+ // 200, if using GT-521F32/GT-511C3
599613int FPS_GT511C3::Identify1_N ()
600614{
601615 if (UseSerialDebug) Serial.println (" FPS - Identify1_N" );
@@ -606,6 +620,8 @@ int FPS_GT511C3::Identify1_N()
606620 SendCommand (packetbytes, 12 );
607621 Response_Packet* rp = GetResponse ();
608622 int retval = rp->IntFromParameter ();
623+ // Change to "retval > 3000" and "retval = 3000", if using GT-521F52
624+ // Leave "reval > 200" and "retval = 200", if using GT-521F32/GT-511C3
609625 if (retval > 200 ) retval = 200 ;
610626 delete rp;
611627 delete packetbytes;
0 commit comments