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,17 +969,17 @@ 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)
|
||||
shiftedVal=127;
|
||||
else if (shiftedVal<-127)
|
||||
shiftedVal=-127;
|
||||
GraphBuffer[i]= shiftedVal;
|
||||
if (shiftedVal > 127)
|
||||
shiftedVal = 127;
|
||||
else if (shiftedVal < -127)
|
||||
shiftedVal = -127;
|
||||
GraphBuffer[i] = shiftedVal;
|
||||
}
|
||||
CmdNorm("");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue