mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
cppchecker
This commit is contained in:
parent
eef2a63081
commit
3ee657c0f7
1 changed files with 2 additions and 3 deletions
|
@ -4857,15 +4857,14 @@ static int CmdHF14AMfice(const char *Cmd) {
|
||||||
bool slow = false;
|
bool slow = false;
|
||||||
bool initialize = true;
|
bool initialize = true;
|
||||||
bool acquisition_completed = false;
|
bool acquisition_completed = false;
|
||||||
uint32_t flags = 0;
|
|
||||||
uint32_t total_num_nonces = 0;
|
uint32_t total_num_nonces = 0;
|
||||||
FILE *fnonces = NULL;
|
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
|
|
||||||
uint32_t part_limit = 3000;
|
uint32_t part_limit = 3000;
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "Collecting "_YELLOW_("%u")" nonces \n", limit);
|
PrintAndLogEx(NORMAL, "Collecting "_YELLOW_("%u")" nonces \n", limit);
|
||||||
|
|
||||||
|
FILE *fnonces = NULL;
|
||||||
if ((fnonces = fopen(filename, "wb")) == NULL) {
|
if ((fnonces = fopen(filename, "wb")) == NULL) {
|
||||||
PrintAndLogEx(WARNING, "Could not create file " _YELLOW_("%s"), filename);
|
PrintAndLogEx(WARNING, "Could not create file " _YELLOW_("%s"), filename);
|
||||||
return PM3_EFILE;
|
return PM3_EFILE;
|
||||||
|
@ -4881,7 +4880,7 @@ static int CmdHF14AMfice(const char *Cmd) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
flags = 0;
|
uint32_t flags = 0;
|
||||||
flags |= initialize ? 0x0001 : 0;
|
flags |= initialize ? 0x0001 : 0;
|
||||||
flags |= slow ? 0x0002 : 0;
|
flags |= slow ? 0x0002 : 0;
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue