Hi All,
I am having a counter that is incremented at every transaction. I want to check if the counter reached the maximum value of 0xFFFF and then reset it to 0x0001. I am not able to do a proper compare beyond 0x7FFF. Is there any restriction on the Nokia 6212 NFC about the maximum allowed values or did someone come across this problem?. My code looks like,
thanksCode:incrementATC(); byte[] srcBuf = new byte[2]; Util.setShort(srcBuf, (short)0, ATC); byte[] desBuf = {(byte) 0x7f, (byte) 0xfe}; short res = Util.arrayCompare(srcBuf, (short)0, desBuf, (short)0, (short)2); if (res > ( (short) 0) ){ setATCount(INITIAL_ATC); ISOException.throwIt((short)0x6999); }
Enya

Reply With Quote


