@@ -374,7 +374,8 @@ int FPS_GT511C3::GetEnrollCount()
374
374
}
375
375
376
376
// 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
378
379
// Return: True if the ID number is enrolled, false if not
379
380
bool FPS_GT511C3::CheckEnrolled (int id)
380
381
{
@@ -394,7 +395,8 @@ bool FPS_GT511C3::CheckEnrolled(int id)
394
395
}
395
396
396
397
// 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
398
400
// Return:
399
401
// 0 - ACK
400
402
// 1 - Database is full
@@ -439,6 +441,8 @@ int FPS_GT511C3::Enroll1()
439
441
delete packetbytes;
440
442
Response_Packet* rp = GetResponse ();
441
443
int retval = rp->IntFromParameter ();
444
+ // Change to "retval < 3000", if using GT-521F52
445
+ // Leave "reval < 200", if using GT-521F32/GT-511C3
442
446
if (retval < 200 ) retval = 3 ; else retval = 0 ;
443
447
if (rp->ACK == false )
444
448
{
@@ -466,6 +470,8 @@ int FPS_GT511C3::Enroll2()
466
470
delete packetbytes;
467
471
Response_Packet* rp = GetResponse ();
468
472
int retval = rp->IntFromParameter ();
473
+ // Change to "retval < 3000", if using GT-521F52
474
+ // Leave "reval < 200", if using GT-521F32/GT-511C3
469
475
if (retval < 200 ) retval = 3 ; else retval = 0 ;
470
476
if (rp->ACK == false )
471
477
{
@@ -494,7 +500,9 @@ int FPS_GT511C3::Enroll3()
494
500
delete packetbytes;
495
501
Response_Packet* rp = GetResponse ();
496
502
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 ;
498
506
if (rp->ACK == false )
499
507
{
500
508
if (rp->Error == Response_Packet::ErrorCodes::NACK_ENROLL_FAILED) retval = 1 ;
@@ -527,7 +535,8 @@ bool FPS_GT511C3::IsPressFinger()
527
535
}
528
536
529
537
// 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)
531
540
// Returns: true if successful, false if position invalid
532
541
bool FPS_GT511C3::DeleteID (int id)
533
542
{
@@ -563,7 +572,8 @@ bool FPS_GT511C3::DeleteAll()
563
572
}
564
573
565
574
// 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)
567
577
// Returns:
568
578
// 0 - Verified OK (the correct finger)
569
579
// 1 - Invalid Position
@@ -594,8 +604,12 @@ int FPS_GT511C3::Verify1_1(int id)
594
604
595
605
// Checks the currently pressed finger against all enrolled fingerprints
596
606
// 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
599
613
int FPS_GT511C3::Identify1_N ()
600
614
{
601
615
if (UseSerialDebug) Serial.println (" FPS - Identify1_N" );
@@ -606,6 +620,8 @@ int FPS_GT511C3::Identify1_N()
606
620
SendCommand (packetbytes, 12 );
607
621
Response_Packet* rp = GetResponse ();
608
622
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
609
625
if (retval > 200 ) retval = 200 ;
610
626
delete rp;
611
627
delete packetbytes;
0 commit comments