mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-24 08:05:13 +08:00
prefered style
This commit is contained in:
parent
7c6d60e7ef
commit
9ede36b056
1 changed files with 2 additions and 3 deletions
|
@ -502,7 +502,6 @@ iso14a_polling_parameters_t iso14a_get_polling_parameters(bool use_ecp, bool use
|
||||||
return wupa_polling_parameters;
|
return wupa_polling_parameters;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int CmdHF14AReader(const char *Cmd) {
|
static int CmdHF14AReader(const char *Cmd) {
|
||||||
CLIParserContext *ctx;
|
CLIParserContext *ctx;
|
||||||
CLIParserInit(&ctx, "hf 14a reader",
|
CLIParserInit(&ctx, "hf 14a reader",
|
||||||
|
@ -567,13 +566,13 @@ static int CmdHF14AReader(const char *Cmd) {
|
||||||
do {
|
do {
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
|
|
||||||
if (cm & ISO14A_USE_CUSTOM_POLLING) {
|
if ((cm & ISO14A_USE_CUSTOM_POLLING) == ISO14A_USE_CUSTOM_POLLING) {
|
||||||
SendCommandMIX(CMD_HF_ISO14443A_READER, cm, 0, 0, (uint8_t *)polling_parameters, sizeof(iso14a_polling_parameters_t));
|
SendCommandMIX(CMD_HF_ISO14443A_READER, cm, 0, 0, (uint8_t *)polling_parameters, sizeof(iso14a_polling_parameters_t));
|
||||||
} else {
|
} else {
|
||||||
SendCommandMIX(CMD_HF_ISO14443A_READER, cm, 0, 0, NULL, 0);
|
SendCommandMIX(CMD_HF_ISO14443A_READER, cm, 0, 0, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ISO14A_CONNECT & cm) {
|
if ((cm & ISO14A_CONNECT) == ISO14A_CONNECT) {
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
if (WaitForResponseTimeout(CMD_ACK, &resp, 2500) == false) {
|
if (WaitForResponseTimeout(CMD_ACK, &resp, 2500) == false) {
|
||||||
DropField();
|
DropField();
|
||||||
|
|
Loading…
Reference in a new issue