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 committed 2017-01-31 16:11:57 +01:00
1 parent 71aa1ff824
commit b828a4e168
4 files changed
+43 -26

No files matched your search

+7 -3
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[] = {