boolean fix in 'hf 15 cmd read' using Adrian's second patch from issue 20

This commit is contained in:
dn337t@gmail.com 2012-05-18 09:05:00 +00:00
parent e4da8ed0bb
commit e8da774090

View file

@ -669,7 +669,7 @@ int CmdHF15CmdRead(const char *Cmd) {
} }
strcat(output," "); strcat(output," ");
for ( int i=2; i<r->arg[0]-2; i++) { for ( int i=2; i<r->arg[0]-2; i++) {
sprintf(output+strlen(output),"%c",recv[i]>31 || recv[i]<127?recv[i]:'.'); sprintf(output+strlen(output),"%c",recv[i]>31 && recv[i]<127?recv[i]:'.');
} }
PrintAndLog("%s",output); PrintAndLog("%s",output);
} else { } else {