mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-11 02:31:23 +08:00
Merge pull request #1719 from merlokk/tk_get_grafbug
get samples from graph buffer instead of reading
This commit is contained in:
commit
47a8fd4ad5
1 changed files with 21 additions and 15 deletions
|
@ -577,14 +577,16 @@ static int CmdHFTexkomReader(const char *Cmd) {
|
|||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_lit0("g", "gbuffer", "Get data from graph buffer"),
|
||||
arg_lit0("v", "verbose", "Verbose scan and output"),
|
||||
arg_lit0("@", NULL, "optional - continuous reader mode"),
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
|
||||
bool verbose = arg_get_lit(ctx, 1);
|
||||
bool cm = arg_get_lit(ctx, 2);
|
||||
bool gbuffer = arg_get_lit(ctx, 1);
|
||||
bool verbose = arg_get_lit(ctx, 2);
|
||||
bool cm = arg_get_lit(ctx, 3);
|
||||
|
||||
CLIParserFree(ctx);
|
||||
|
||||
|
@ -594,6 +596,9 @@ static int CmdHFTexkomReader(const char *Cmd) {
|
|||
}
|
||||
|
||||
uint32_t samplesCount = 30000;
|
||||
if (gbuffer) {
|
||||
samplesCount = g_GraphTraceLen;
|
||||
} else {
|
||||
clearCommandBuffer();
|
||||
SendCommandNG(CMD_HF_ACQ_RAW_ADC, (uint8_t *)&samplesCount, sizeof(uint32_t));
|
||||
|
||||
|
@ -610,6 +615,7 @@ static int CmdHFTexkomReader(const char *Cmd) {
|
|||
return PM3_EFAILED;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
char bitstring[256] = {0};
|
||||
char cbitstring[128] = {0};
|
||||
|
|
Loading…
Reference in a new issue