Corrected the size of the file chunk requested when the Max APDU is 50.

This commit is contained in:
skarg
2007-06-06 00:13:58 +00:00
parent 8a428c2e79
commit 8207c3931b
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ int main(int argc, char *argv[])
my_max_apdu = MAX_APDU;
/* Typical sizes are 50, 128, 206, 480, 1024, and 1476 octets */
if (my_max_apdu <= 50)
requestedOctetCount = my_max_apdu - 16;
requestedOctetCount = my_max_apdu - 19;
else if (my_max_apdu <= 480)
requestedOctetCount = my_max_apdu - 32;
else if (my_max_apdu <= 1476)