CHG: 'lf snoop' - now automatically downloads samples after finished. (annoying step to do over and over)

FIX: 'lf snoop'      - now turns of LF antenna after snoop.
FIX: 'lf cotag read' - now waits until the ACK cmd arrives before downloading samples.
This commit is contained in:
iceman1001 2017-01-31 16:11:57 +01:00
commit b828a4e168
4 changed files with 43 additions and 26 deletions

View file

@ -18,9 +18,13 @@ int CmdCOTAGRead(const char *Cmd) {
UsbCommand c = {CMD_COTAG, {0, 0, 0}};
clearCommandBuffer();
SendCommand(&c);
getSamples("20000", TRUE);
return CmdFSKdemodAWID(Cmd);
if ( !WaitForResponseTimeout(CMD_ACK, NULL, 2500) ) {
//PrintAndLog("command execution time out");
return 1;
}
getSamples("", true);
//return CmdFSKdemodAWID(Cmd);
return 0;
}
static command_t CommandTable[] = {