Commitcd798bfc by developer33

Updated with ReaderOpenEx at app start, lib submodule updated, compiled linux binaries updated

b67e8861
lib@403adb9f
Subproject commit3ccfa9554a3323443cb29811c46042d41090c8a4
Subproject commit403adb9f6ec48479385c098d7ae98caa13bbb2d7
... ... @@ -64,7 +64,7 @@ int main(void)
uint8_tsak,uid_size,uid[10];
UFR_STATUSstatus;
usage();
printf(" --------------------------------------------------\n");
printf(" Please wait while opening uFR NFC reader.\n");
printf(" --------------------------------------------------\n");
... ... @@ -72,7 +72,54 @@ int main(void)
#ifdef __DEBUG
status=ReaderOpenEx(1,PORT_NAME,1,NULL);
#else
intmode=0;
printf("Select reader opening mode:\n");
printf(" (1) - Simple Reader Open\n");
printf(" (2) - Advanced Reader Open\n");
scanf("%d",&mode);
fflush(stdin);
if(mode==1){
status=ReaderOpen();
}elseif(mode==2){
uint32_treader_type=1;
charport_name[1024]="";
uint32_tport_interface=2;
charopen_args[1024]="";
constcharstr_interface[2]="";
printf("Enter reader type:\n");
scanf("%d",&reader_type);
fflush(stdin);
printf("Enter port name:\n");
scanf("%s",port_name);
fflush(stdin);
printf("Enter port interface:\n");
scanf("%s",str_interface);
if(str_interface[0]=='U'){
port_interface=85;
}elseif(str_interface[0]=='T'){
port_interface=84;
}else{
port_interface=atoi(str_interface);
}
fflush(stdin);
printf("Enter additional argument:\n");
scanf("%s",open_args);
fflush(stdin);
status=ReaderOpenEx(reader_type,port_name,port_interface,open_args);
}else
{
printf("Invalid input. Press any key to quit the application...");
getchar();
returnEXIT_FAILURE;
}
#endif
if(status!=UFR_OK)
{
... ... @@ -95,7 +142,7 @@ int main(void)
usleep(500000);
#endif
*/
if(!CheckDependencies())
{
ReaderClose();
... ... @@ -110,6 +157,9 @@ int main(void)
#if linux || __linux__ || __APPLE__
_initTermios(0);
#endif
usage();
do
{
while(!_kbhit())
... ...
    Markdownis supported
    0%or
    You are about to add0peopleto the discussion. Proceed with caution.
    Finish editing this message first!
    Pleaseregisteror发表评论
    Baidu
    map