mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
textual
This commit is contained in:
parent
f8c7942082
commit
dab043a1fc
1 changed files with 6 additions and 7 deletions
|
@ -339,7 +339,7 @@ int CmdLFCommandRead(const char *Cmd) {
|
||||||
// bitbang mode
|
// bitbang mode
|
||||||
if (payload.delay == 0) {
|
if (payload.delay == 0) {
|
||||||
if (payload.zeros < 7 || payload.ones < 7) {
|
if (payload.zeros < 7 || payload.ones < 7) {
|
||||||
PrintAndLogEx(WARNING, "Warning periods cannot be less than 7us in bit bang mode");
|
PrintAndLogEx(WARNING, "warning periods cannot be less than 7us in bit bang mode");
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -347,15 +347,14 @@ int CmdLFCommandRead(const char *Cmd) {
|
||||||
//Validations
|
//Validations
|
||||||
if (errors || cmdp == 0) return usage_lf_cmdread();
|
if (errors || cmdp == 0) return usage_lf_cmdread();
|
||||||
|
|
||||||
PrintAndLogEx(SUCCESS, "Sending");
|
PrintAndLogEx(SUCCESS, "sending");
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
SendCommandNG(CMD_LF_MOD_THEN_ACQ_RAW_ADC, (uint8_t *)&payload, 8 + datalen);
|
SendCommandNG(CMD_LF_MOD_THEN_ACQ_RAW_ADC, (uint8_t *)&payload, 8 + datalen);
|
||||||
|
|
||||||
printf("\n");
|
|
||||||
|
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
|
|
||||||
uint8_t i = 10;
|
uint8_t i = 10;
|
||||||
|
// 20sec wait loop
|
||||||
while (!WaitForResponseTimeout(CMD_LF_MOD_THEN_ACQ_RAW_ADC, &resp, 2000) && i != 0) {
|
while (!WaitForResponseTimeout(CMD_LF_MOD_THEN_ACQ_RAW_ADC, &resp, 2000) && i != 0) {
|
||||||
printf(".");
|
printf(".");
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
@ -365,15 +364,15 @@ int CmdLFCommandRead(const char *Cmd) {
|
||||||
|
|
||||||
if (resp.status == PM3_SUCCESS) {
|
if (resp.status == PM3_SUCCESS) {
|
||||||
if (i) {
|
if (i) {
|
||||||
PrintAndLogEx(SUCCESS, "Downloading response signal data");
|
PrintAndLogEx(SUCCESS, "downloading response signal data");
|
||||||
getSamples(0, false);
|
getSamples(0, true);
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
|
PrintAndLogEx(WARNING, "timeout while waiting for reply.");
|
||||||
return PM3_ETIMEOUT;
|
return PM3_ETIMEOUT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PrintAndLogEx(WARNING, "Command failed.");
|
PrintAndLogEx(WARNING, "command failed.");
|
||||||
return PM3_ESOFT;
|
return PM3_ESOFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue