read response
This commit is contained in:
1 parent
e3a50e0e1e
commit
0392cfaa9b
1 file changed
+7
@@ -41,8 +41,15 @@ static int CmdHFTexkomReader(const char *Cmd) {
|
||||
CLIParserFree(ctx);
|
||||
|
||||
uint32_t samplesCount = 40000;
|
||||
clearCommandBuffer();
|
||||
SendCommandNG(CMD_HF_ACQ_RAW_ADC, (uint8_t *)&samplesCount, sizeof(uint32_t));
|
||||
|
||||
PacketResponseNG resp;
|
||||
if (!WaitForResponseTimeout(CMD_HF_ACQ_RAW_ADC, &resp, 2500)) {
|
||||
PrintAndLogEx(WARNING, "(hf texkom reader) command execution time out");
|
||||
return PM3_ETIMEOUT;
|
||||
}
|
||||
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user