Fork of library forked by beanmachine44, which was originally written by tosihisa

Dependencies:   GT511C3

Files at this revision

API Documentation at this revision

Comitter:
austinterrell
Date:
Tue Dec 03 19:06:53 2019 +0000
Parent:
2:8fa6daf39d91
Commit message:
Changed enrollment messages

Changed in this revision

GT511C3.cpp Show annotated file Show diff for this revision Revisions of this file
GT511C3.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 8fa6daf39d91 -r 9e6275039458 GT511C3.cpp
--- a/GT511C3.cpp	Tue Dec 01 20:48:44 2015 +0000
+++ b/GT511C3.cpp	Tue Dec 03 19:06:53 2019 +0000
@@ -289,7 +289,7 @@
     CmosLed(1);
 
     while(1){
-        if((sts = (*progress)(1,"EnrollStart\n")) != 0)
+        if((sts = (*progress)(1,"Starting Enrollment...\n")) != 0)
             return -9999;
         Parameter = ID;
         sts = SendRecv(CMD_EnrollStart,&Parameter,&Response);
@@ -298,40 +298,40 @@
         if(Response != CMD_Ack)
             return -100;
 
-        if((sts = (*progress)(0,"Remove finger\n")) != 0)
+        if((sts = (*progress)(0,"Remove Finger...\n")) != 0)
             return -9999;
         WaitPress(0);
 
         while(1){
-            if((sts = (*progress)(10,"Press finger to Enroll (1st)\n")) != 0)
+            if((sts = (*progress)(10,"Press Finger 1/3...\n")) != 0)
                 return -9999;
             WaitPress(1);
             if(Capture(1) == 0)
                 break;
         }
 
-        if((sts = (*progress)(0,"Remove finger\n")) != 0)
+        if((sts = (*progress)(0,"Remove Finger...\n")) != 0)
             return -9999;
         if(Enroll_N(1) != 0)
             continue;
         WaitPress(0);
 
         while(1){
-            if((sts = (*progress)(20,"Press finger to Enroll (2nd)\n")) != 0)
+            if((sts = (*progress)(20,"Press Finger 2/3...\n")) != 0)
                 return -9999;
             WaitPress(1);
             if(Capture(1) == 0)
                 break;
         }
 
-        if((sts = (*progress)(0,"Remove finger\n")) != 0)
+        if((sts = (*progress)(0,"Remove Finger...\n")) != 0)
             return -9999;
         if(Enroll_N(2) != 0)
             continue;
         WaitPress(0);
 
         while(1){
-            if((sts = (*progress)(30,"Press finger to Enroll (3rd)\n")) != 0)
+            if((sts = (*progress)(30,"Press Finger 3/3...\n")) != 0)
                 return -9999;
             WaitPress(1);
             if(Capture(1) == 0)
@@ -344,7 +344,7 @@
             continue;
         //WaitPress(0); // This was eating a byte from the DataPacket if you set the ID=-1
 
-        if((sts = (*progress)(100,"Enroll OK\n")) != 0)
+        if((sts = (*progress)(100,"User Enrolled\n")) != 0)
             return -9999;
 
         break;
diff -r 8fa6daf39d91 -r 9e6275039458 GT511C3.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GT511C3.lib	Tue Dec 03 19:06:53 2019 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/beanmachine44/code/GT511C3/#8fa6daf39d91