read response

This commit is contained in:
merlokk 2022-06-25 15:23:04 +03:00
parent e3a50e0e1e
commit 0392cfaa9b

View file

@ -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;
}