mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
CHG: the "indent" software warns about some assingments. I've tried to fix them.
This commit is contained in:
parent
25d52dd261
commit
7d0efb37d8
4 changed files with 38 additions and 39 deletions
|
@ -969,10 +969,10 @@ int CmdUndec(const char *Cmd)
|
|||
//shift graph zero up or down based on input + or -
|
||||
int CmdGraphShiftZero(const char *Cmd)
|
||||
{
|
||||
int shift=0;
|
||||
int shift = 0, shiftedVal = 0;
|
||||
//set options from parameters entered with the command
|
||||
sscanf(Cmd, "%i", &shift);
|
||||
int shiftedVal=0;
|
||||
|
||||
for(int i = 0; i<GraphTraceLen; i++){
|
||||
shiftedVal=GraphBuffer[i]+shift;
|
||||
if (shiftedVal > 127)
|
||||
|
|
|
@ -212,8 +212,7 @@ int getUID(uint8_t *buf)
|
|||
|
||||
for (int retry = 0; retry <3; retry++) { // don't give up the at the first try
|
||||
|
||||
req[0]= ISO15_REQ_SUBCARRIER_SINGLE | ISO15_REQ_DATARATE_HIGH |
|
||||
ISO15_REQ_INVENTORY | ISO15_REQINV_SLOT1;
|
||||
req[0] = ISO15_REQ_SUBCARRIER_SINGLE | ISO15_REQ_DATARATE_HIGH | ISO15_REQ_INVENTORY | ISO15_REQINV_SLOT1;
|
||||
req[1] = ISO15_CMD_INVENTORY;
|
||||
req[2] = 0; // mask length
|
||||
reqlen = AddCrc(req, 3);
|
||||
|
@ -255,8 +254,8 @@ static char* getTagInfo(uint8_t *uid) {
|
|||
i++;
|
||||
}
|
||||
|
||||
if (best>=0) return uidmapping[best].desc;
|
||||
|
||||
if (best >= 0)
|
||||
return uidmapping[best].desc;
|
||||
return uidmapping[i].desc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue