I am experiencing a strange problem now

T0 protocol: It threw"6F00" while running into this code line short le = apdu.setOutgoing();
T1 protocol: It can return test_out value without any problem.
My code:
Code: Select all
private void Test(APDU apdu)
{
byte[] buffer = apdu.getBuffer();
short le = apdu.setOutgoing();
apdu.setOutgoingLength((byte)4);
apdu.sendBytesLong(test_out, (short)0, (short)4);
}
Does anyone tell me where I made the mistake? Thanks very much.