mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-11 15:56:09 -07:00
new grid X offset calcs to fix some issues
also fixed a save_restore issue with grid alignments now save_restoreGB() saves/restores offset values added macro enumeration of SAVE vs RESTORE for save_restore commands.
This commit is contained in:
parent
999d57c201
commit
3fd7fce4ac
8 changed files with 51 additions and 67 deletions
|
@ -71,7 +71,7 @@ void save_restoreDB(uint8_t saveOpt)
|
|||
static int savedDemodStartIdx = 0;
|
||||
static int savedDemodClock = 0;
|
||||
|
||||
if (saveOpt==1) { //save
|
||||
if (saveOpt == GRAPH_SAVE) { //save
|
||||
|
||||
memcpy(SavedDB, DemodBuffer, sizeof(DemodBuffer));
|
||||
SavedDBlen = DemodBufferLen;
|
||||
|
@ -1077,7 +1077,7 @@ void setClockGrid(int clk, int offset) {
|
|||
g_DemodClock = clk;
|
||||
if (g_debugMode) PrintAndLog("demodoffset %d, clk %d",offset,clk);
|
||||
|
||||
if (offset > clk) offset %= clk;
|
||||
if (offset > clk) offset %= clk;
|
||||
if (offset < 0) offset += clk;
|
||||
|
||||
if (offset > GraphTraceLen || offset < 0) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue