mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-22 21:17:31 +08:00
styles
This commit is contained in:
parent
29d73046cc
commit
0b6dce3363
1 changed files with 5 additions and 4 deletions
|
@ -916,7 +916,7 @@ int CmdUndec(const char *Cmd) {
|
|||
//by marshmellow
|
||||
//shift graph zero up or down based on input + or -
|
||||
int CmdGraphShiftZero(const char *Cmd) {
|
||||
int shift = 0, shiftedVal = 0;
|
||||
int shift = 0, shiftedVal;
|
||||
//set options from parameters entered with the command
|
||||
sscanf(Cmd, "%i", &shift);
|
||||
|
||||
|
@ -1579,12 +1579,13 @@ int CmdTuneSamples(const char *Cmd) {
|
|||
|
||||
// graph LF measurements
|
||||
// even here, these values has 3% error.
|
||||
uint16_t test = 0;
|
||||
uint16_t test1 = 0;
|
||||
for (int i = 0; i < 256; i++) {
|
||||
GraphBuffer[i] = resp.d.asBytes[i] - 128;
|
||||
test += resp.d.asBytes[i];
|
||||
test1 += resp.d.asBytes[i];
|
||||
}
|
||||
if (test > 0) {
|
||||
|
||||
if (test1 > 0) {
|
||||
PrintAndLogEx(SUCCESS, "\nDisplaying LF tuning graph. Divisor 89 is 134khz, 95 is 125khz.\n\n");
|
||||
GraphTraceLen = 256;
|
||||
ShowGraphWindow();
|
||||
|
|
Loading…
Add table
Reference in a new issue