Added APDU Timout message for Writefile, Readfile, Writeprop, Readprop demos.
This commit is contained in:
@@ -263,8 +263,11 @@ int main(int argc, char *argv[])
|
|||||||
/* increment timer - exit if timed out */
|
/* increment timer - exit if timed out */
|
||||||
elapsed_seconds += (current_seconds - last_seconds);
|
elapsed_seconds += (current_seconds - last_seconds);
|
||||||
if (elapsed_seconds > timeout_seconds)
|
if (elapsed_seconds > timeout_seconds)
|
||||||
|
{
|
||||||
|
printf("\rError: APDU Timeout!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* keep track of time for next check */
|
/* keep track of time for next check */
|
||||||
last_seconds = current_seconds;
|
last_seconds = current_seconds;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -290,8 +290,11 @@ int main(int argc, char *argv[])
|
|||||||
/* increment timer - exit if timed out */
|
/* increment timer - exit if timed out */
|
||||||
elapsed_seconds += (current_seconds - last_seconds);
|
elapsed_seconds += (current_seconds - last_seconds);
|
||||||
if (elapsed_seconds > timeout_seconds)
|
if (elapsed_seconds > timeout_seconds)
|
||||||
|
{
|
||||||
|
printf("\rError: APDU Timeout!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* keep track of time for next check */
|
/* keep track of time for next check */
|
||||||
last_seconds = current_seconds;
|
last_seconds = current_seconds;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,8 +230,11 @@ int main(int argc, char *argv[])
|
|||||||
/* increment timer - exit if timed out */
|
/* increment timer - exit if timed out */
|
||||||
elapsed_seconds += (current_seconds - last_seconds);
|
elapsed_seconds += (current_seconds - last_seconds);
|
||||||
if (elapsed_seconds > timeout_seconds)
|
if (elapsed_seconds > timeout_seconds)
|
||||||
|
{
|
||||||
|
printf("\rError: APDU Timeout!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* keep track of time for next check */
|
/* keep track of time for next check */
|
||||||
last_seconds = current_seconds;
|
last_seconds = current_seconds;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ SRCS = writefile.c \
|
|||||||
..\..\demo\handler\h_whois.c \
|
..\..\demo\handler\h_whois.c \
|
||||||
..\..\demo\handler\h_rp.c \
|
..\..\demo\handler\h_rp.c \
|
||||||
..\..\demo\handler\s_whois.c \
|
..\..\demo\handler\s_whois.c \
|
||||||
..\..\demo\handler\s_awr.c \
|
..\..\demo\handler\s_awfs.c \
|
||||||
..\..\bacdcode.c \
|
..\..\bacdcode.c \
|
||||||
..\..\bacapp.c \
|
..\..\bacapp.c \
|
||||||
..\..\bacstr.c \
|
..\..\bacstr.c \
|
||||||
|
|||||||
@@ -268,8 +268,11 @@ int main(int argc, char *argv[])
|
|||||||
/* increment timer - exit if timed out */
|
/* increment timer - exit if timed out */
|
||||||
elapsed_seconds += (current_seconds - last_seconds);
|
elapsed_seconds += (current_seconds - last_seconds);
|
||||||
if (elapsed_seconds > timeout_seconds)
|
if (elapsed_seconds > timeout_seconds)
|
||||||
|
{
|
||||||
|
printf("\rError: APDU Timeout!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* keep track of time for next check */
|
/* keep track of time for next check */
|
||||||
last_seconds = current_seconds;
|
last_seconds = current_seconds;
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -327,8 +327,11 @@ int main(int argc, char *argv[])
|
|||||||
/* increment timer - exit if timed out */
|
/* increment timer - exit if timed out */
|
||||||
elapsed_seconds += (current_seconds - last_seconds);
|
elapsed_seconds += (current_seconds - last_seconds);
|
||||||
if (elapsed_seconds > timeout_seconds)
|
if (elapsed_seconds > timeout_seconds)
|
||||||
|
{
|
||||||
|
printf("\rError: APDU Timeout!");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* keep track of time for next check */
|
/* keep track of time for next check */
|
||||||
last_seconds = current_seconds;
|
last_seconds = current_seconds;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user