mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
fix hf 14a raw to allow large timeouts
This commit is contained in:
parent
5cb12db5af
commit
bc19a532a9
1 changed files with 5 additions and 5 deletions
|
@ -31,7 +31,7 @@
|
||||||
bool APDUInFramingEnable = true;
|
bool APDUInFramingEnable = true;
|
||||||
|
|
||||||
static int CmdHelp(const char *Cmd);
|
static int CmdHelp(const char *Cmd);
|
||||||
static int waitCmd(uint8_t iSelect);
|
static int waitCmd(uint8_t iSelect, uint32_t timeout);
|
||||||
|
|
||||||
static const manufactureName manufactureMapping[] = {
|
static const manufactureName manufactureMapping[] = {
|
||||||
// ID, "Vendor Country"
|
// ID, "Vendor Country"
|
||||||
|
@ -1309,17 +1309,17 @@ static int CmdHF14ACmdRaw(const char *Cmd) {
|
||||||
if (reply) {
|
if (reply) {
|
||||||
int res = 0;
|
int res = 0;
|
||||||
if (active_select)
|
if (active_select)
|
||||||
res = waitCmd(1);
|
res = waitCmd(1, timeout);
|
||||||
if (!res && datalen > 0)
|
if (!res && datalen > 0)
|
||||||
waitCmd(0);
|
waitCmd(0, timeout);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int waitCmd(uint8_t iSelect) {
|
static int waitCmd(uint8_t iSelect, uint32_t timeout) {
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
|
|
||||||
if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) {
|
if (WaitForResponseTimeout(CMD_ACK, &resp, timeout + 1500)) {
|
||||||
uint16_t len = (resp.oldarg[0] & 0xFFFF);
|
uint16_t len = (resp.oldarg[0] & 0xFFFF);
|
||||||
if (iSelect) {
|
if (iSelect) {
|
||||||
len = (resp.oldarg[1] & 0xFFFF);
|
len = (resp.oldarg[1] & 0xFFFF);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue