chg: textual
This commit is contained in:
@@ -1317,7 +1317,10 @@ int CmdRawDemod(const char *Cmd) {
|
|||||||
void setClockGrid(int clk, int offset) {
|
void setClockGrid(int clk, int offset) {
|
||||||
g_DemodStartIdx = offset;
|
g_DemodStartIdx = offset;
|
||||||
g_DemodClock = clk;
|
g_DemodClock = clk;
|
||||||
PrintAndLogEx(DEBUG, "DEBUG: (setClockGrid) demodoffset %d, clk %d", offset, clk);
|
if ( clk == 0 && offset == 0)
|
||||||
|
PrintAndLogEx(DEBUG, "DEBUG: (setClockGrid) clear settings");
|
||||||
|
else
|
||||||
|
PrintAndLogEx(DEBUG, "DEBUG: (setClockGrid) demodoffset %d, clk %d", offset, clk);
|
||||||
|
|
||||||
if (offset > clk) offset %= clk;
|
if (offset > clk) offset %= clk;
|
||||||
if (offset < 0) offset += clk;
|
if (offset < 0) offset += clk;
|
||||||
|
|||||||
Reference in New Issue
Block a user