Added APDU Timout message for Writefile, Readfile, Writeprop, Readprop demos.

This commit is contained in:
skarg
2006-08-15 20:24:15 +00:00
parent 2dd0cd5d69
commit 4fe0decdf7
7 changed files with 16 additions and 1 deletions
+3
View File
@@ -263,7 +263,10 @@ int main(int argc, char *argv[])
/* increment timer - exit if timed out */
elapsed_seconds += (current_seconds - last_seconds);
if (elapsed_seconds > timeout_seconds)
{
printf("\rError: APDU Timeout!");
break;
}
}
/* keep track of time for next check */
last_seconds = current_seconds;
+3
View File
@@ -290,7 +290,10 @@ int main(int argc, char *argv[])
/* increment timer - exit if timed out */
elapsed_seconds += (current_seconds - last_seconds);
if (elapsed_seconds > timeout_seconds)
{
printf("\rError: APDU Timeout!");
break;
}
}
/* keep track of time for next check */
last_seconds = current_seconds;
+3
View File
@@ -230,7 +230,10 @@ int main(int argc, char *argv[])
/* increment timer - exit if timed out */
elapsed_seconds += (current_seconds - last_seconds);
if (elapsed_seconds > timeout_seconds)
{
printf("\rError: APDU Timeout!");
break;
}
}
/* keep track of time for next check */
last_seconds = current_seconds;
+1 -1
View File
@@ -25,7 +25,7 @@ SRCS = writefile.c \
..\..\demo\handler\h_whois.c \
..\..\demo\handler\h_rp.c \
..\..\demo\handler\s_whois.c \
..\..\demo\handler\s_awr.c \
..\..\demo\handler\s_awfs.c \
..\..\bacdcode.c \
..\..\bacapp.c \
..\..\bacstr.c \
+3
View File
@@ -268,7 +268,10 @@ int main(int argc, char *argv[])
/* increment timer - exit if timed out */
elapsed_seconds += (current_seconds - last_seconds);
if (elapsed_seconds > timeout_seconds)
{
printf("\rError: APDU Timeout!");
break;
}
}
/* keep track of time for next check */
last_seconds = current_seconds;
Binary file not shown.
+3
View File
@@ -327,7 +327,10 @@ int main(int argc, char *argv[])
/* increment timer - exit if timed out */
elapsed_seconds += (current_seconds - last_seconds);
if (elapsed_seconds > timeout_seconds)
{
printf("\rError: APDU Timeout!");
break;
}
}
/* keep track of time for next check */
last_seconds = current_seconds;