return n+2;
}
-
+#ifdef ON_DEVICE
int sprintf(char *str, const char *format, ...);
+#endif
// returns a string representation of the UID
// UID is transmitted and stored LSB first, displayed MSB first
return target;
}
-unsigned short iclass_crc16(char *data_p, unsigned short length)
+uint16_t iclass_crc16(char *data_p, unsigned short length)
{
unsigned char i;
unsigned int data;
- unsigned int crc = 0xffff;
+ uint16_t crc = 0xffff;
if (length == 0)
return (~crc);