};
-// fast method to just read the UID of an tag (collission detection not supported)
-// *buf shouls be large enough to fit the 64bit uid
+// fast method to just read the UID of a tag (collission detection not supported)
+// *buf should be large enough to fit the 64bit uid
// returns 1 if suceeded
int getUID(uint8_t *buf)
{
sprintf(output+strlen(output),"%02hX ",recv[i]);
}
strcat(output," ");
- for ( int i=2; i<r->arg[0]-2; i++) {
- sprintf(output+strlen(output),"%c",recv[i]>31 || recv[i]<127?recv[i]:'.');
+ for ( int i=1; i<r->arg[0]-2; i++) {
+ sprintf(output+strlen(output),"%c",recv[i]>31 && recv[i]<127?recv[i]:'.');
}
PrintAndLog("%s",output);
} else {