Report successful execution
This commit is contained in:
parent
a59ea2ce2b
commit
9c8555d695
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,7 @@ public class MyApplet extends Applet {
|
|||
short length;
|
||||
byte[] buffer = apdu.getBuffer();
|
||||
|
||||
if (buffer[ISO7816.OFFSET_CLA] != 0x80) {
|
||||
if (buffer[ISO7816.OFFSET_CLA] != (byte)0x80) {
|
||||
ISOException.throwIt(ISO7816.SW_CLA_NOT_SUPPORTED);
|
||||
} else {
|
||||
byte instruction = buffer[ISO7816.OFFSET_INS];
|
||||
|
@ -90,6 +90,8 @@ public class MyApplet extends Applet {
|
|||
ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
|
||||
break;
|
||||
}
|
||||
|
||||
ISOException.throwIt(ISO7816.SW_NO_ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue