]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - common/iso15693tools.c
Comms refactor (prerequisite of libproxmark work) (#371)
[proxmark3-svn] / common / iso15693tools.c
index 0f7a250bf94c54651ec048474c3ced3d2b56c0f9..cf7d5341cead23a1c9ad97fcffa1b5c4f290c219 100644 (file)
@@ -50,8 +50,9 @@ int Iso15693AddCrc(uint8_t *req, int n) {
        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
@@ -66,11 +67,11 @@ char* Iso15693sprintUID(char *target,uint8_t *uid) {
   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);
Impressum, Datenschutz