add timeout and some debug messages

This commit is contained in:
merlokk committed 2022-07-06 19:41:08 +03:00
1 parent 7c2379ac9f
commit 1a620c5563
2 files changed
+7 -2

No files matched your search

+2 -1
View File
@@ -627,6 +627,7 @@ static int CmdHFTexkomSim(const char *Cmd) {
SendCommandNG(CMD_HF_TEXKOM_SIMULATE, (uint8_t*)&payload, sizeof(payload));
if (payload.timeout > 0 && payload.timeout < 2800) {
PrintAndLogEx(INFO, "simulate command started");
PacketResponseNG resp;
if (WaitForResponseTimeout(CMD_HF_TEXKOM_SIMULATE, &resp, 3000) == false) {
if (verbose) {
@@ -636,7 +637,7 @@ static int CmdHFTexkomSim(const char *Cmd) {
}
PrintAndLogEx(INFO, "simulate command execution done");
} else {
PrintAndLogEx(INFO, "simulate command started");
PrintAndLogEx(INFO, "simulate command started...");
}
return PM3_SUCCESS;