fix lf cotag reader , make the grid command use the new syntax

This commit is contained in:
iceman1001 2023-07-17 17:30:15 +02:00
parent 24938e3ed5
commit 73eb8d0de0

View file

@ -75,11 +75,13 @@ static int CmdCOTAGDemod(const char *Cmd) {
void *argtable[] = {
arg_param_begin,
arg_lit0("v", "verbose", "verbose output"),
arg_param_end
};
CLIExecWithReturn(ctx, Cmd, argtable, true);
bool verbose = arg_get_lit(ctx, 1);
CLIParserFree(ctx);
return demodCOTAG(true);
return demodCOTAG(verbose);
}
// When reading a COTAG.
@ -152,7 +154,7 @@ static int CmdCOTAGReader(const char *Cmd) {
case 0:
case 2: {
CmdPlot("");
CmdGrid("384");
CmdGrid("-x 384");
getSamples(0, false);
break;
}