added functionality: dump card memory, save|load card memory.

50% fixed problem with readline lib
This commit is contained in:
Merlokbr@gmail.com 2011-06-22 01:25:16 +00:00
parent 8556b852ed
commit ab8b654efa
4 changed files with 135 additions and 11 deletions

View file

@ -105,12 +105,12 @@ void UsbCommandReceived(UsbCommand *UC)
}
memcpy(s, UC->d.asBytes, UC->arg[0]);
s[UC->arg[0]] = '\0';
PrintAndLog("#db# %s", s);
PrintAndLog("#db# %s ", s);
return;
}
case CMD_DEBUG_PRINT_INTEGERS:
PrintAndLog("#db# %08x, %08x, %08x\r\n", UC->arg[0], UC->arg[1], UC->arg[2]);
PrintAndLog("#db# %08x, %08x, %08x \r\n", UC->arg[0], UC->arg[1], UC->arg[2]);
return;
case CMD_MEASURED_ANTENNA_TUNING: {
@ -158,7 +158,7 @@ void UsbCommandReceived(UsbCommand *UC)
unexpected_response:
if(UC->cmd != CMD_ACK)
PrintAndLog("unrecognized command %08x\n", UC->cmd);
PrintAndLog("unrecognized command %08x \n", UC->cmd);
else
memcpy(&current_response, UC, sizeof(UsbCommand));
received_command = UC->cmd;