%.2X is the wrong way to specify the number of digits. It should be %2X and if you want the leading zero for numbers less than 0x10, then the format should be %02X.
Pete
%.2X is the wrong way to specify the number of digits. It should be %2X and if you want the leading zero for numbers less than 0x10, then the format should be %02X.
Pete