Report successful execution

This commit is contained in:
Manuel Thalmann 2023-10-13 02:02:12 +02:00
parent a59ea2ce2b
commit 9c8555d695

View file

@ -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);
}
}
}