mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 04:49:38 -07:00
rename askrawdemod to askmandemod
This commit is contained in:
parent
0e74c023bd
commit
9e6dd4eb69
1 changed files with 3 additions and 3 deletions
|
@ -269,7 +269,7 @@ restart:
|
||||||
//by marshmellow
|
//by marshmellow
|
||||||
//takes 2 arguments - clock and invert both as integers
|
//takes 2 arguments - clock and invert both as integers
|
||||||
//prints binary found and saves in graphbuffer for further commands
|
//prints binary found and saves in graphbuffer for further commands
|
||||||
int Cmdaskrawdemod(const char *Cmd)
|
int Cmdaskmandemod(const char *Cmd)
|
||||||
{
|
{
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
int invert=0; //invert default
|
int invert=0; //invert default
|
||||||
|
@ -315,7 +315,6 @@ int Cmdaskrawdemod(const char *Cmd)
|
||||||
uint32_t bestStart = GraphTraceLen;
|
uint32_t bestStart = GraphTraceLen;
|
||||||
uint32_t bestErrCnt = (GraphTraceLen/1000);
|
uint32_t bestErrCnt = (GraphTraceLen/1000);
|
||||||
//PrintAndLog("DEBUG - lastbit - %d",lastBit);
|
//PrintAndLog("DEBUG - lastbit - %d",lastBit);
|
||||||
|
|
||||||
//loop to find first wave that works
|
//loop to find first wave that works
|
||||||
for (iii=0; iii < gLen; ++iii){
|
for (iii=0; iii < gLen; ++iii){
|
||||||
if ((GraphBuffer[iii]>=high)||(GraphBuffer[iii]<=low)){
|
if ((GraphBuffer[iii]>=high)||(GraphBuffer[iii]<=low)){
|
||||||
|
@ -372,6 +371,7 @@ int Cmdaskrawdemod(const char *Cmd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (bitnum>16){
|
if (bitnum>16){
|
||||||
|
|
||||||
PrintAndLog("Data start pos:%d, lastBit:%d, stop pos:%d, numBits:%d",iii,lastBit,i,bitnum);
|
PrintAndLog("Data start pos:%d, lastBit:%d, stop pos:%d, numBits:%d",iii,lastBit,i,bitnum);
|
||||||
//move BitStream back to GraphBuffer
|
//move BitStream back to GraphBuffer
|
||||||
ClearGraph(0);
|
ClearGraph(0);
|
||||||
|
@ -1544,7 +1544,7 @@ static command_t CommandTable[] =
|
||||||
{"help", CmdHelp, 1, "This help"},
|
{"help", CmdHelp, 1, "This help"},
|
||||||
{"amp", CmdAmp, 1, "Amplify peaks"},
|
{"amp", CmdAmp, 1, "Amplify peaks"},
|
||||||
{"askdemod", Cmdaskdemod, 1, "<0 or 1> -- Attempt to demodulate simple ASK tags"},
|
{"askdemod", Cmdaskdemod, 1, "<0 or 1> -- Attempt to demodulate simple ASK tags"},
|
||||||
{"askrawdemod", Cmdaskrawdemod, 1, "[clock] [invert<0 or 1>] -- Attempt to demodulate simple ASK tags and output binary (args optional-defaults='64 0')"},
|
{"askmandemod", Cmdaskmandemod, 1, "[clock] [invert<0 or 1>] -- Attempt to demodulate ASK/Manchester tags and output binary (args optional[clock will try Auto-detect])"},
|
||||||
{"autocorr", CmdAutoCorr, 1, "<window length> -- Autocorrelation over window"},
|
{"autocorr", CmdAutoCorr, 1, "<window length> -- Autocorrelation over window"},
|
||||||
{"bitsamples", CmdBitsamples, 0, "Get raw samples as bitstring"},
|
{"bitsamples", CmdBitsamples, 0, "Get raw samples as bitstring"},
|
||||||
{"bitstream", CmdBitstream, 1, "[clock rate] -- Convert waveform into a bitstream"},
|
{"bitstream", CmdBitstream, 1, "[clock rate] -- Convert waveform into a bitstream"},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue