mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-16 02:03:00 -07:00
MFU adjustment to allow 0 len returns from raw cmds
This commit is contained in:
parent
abab60ae21
commit
45673b9457
1 changed files with 0 additions and 1 deletions
|
@ -107,7 +107,6 @@ static int ul_send_cmd_raw( uint8_t *cmd, uint8_t cmdlen, uint8_t *response, uin
|
|||
SendCommand(&c);
|
||||
UsbCommand resp;
|
||||
if (!WaitForResponseTimeout(CMD_ACK, &resp, 1500)) return -1;
|
||||
if (resp.arg[0] < 1) return -1;
|
||||
|
||||
uint16_t resplen = (resp.arg[0] < responseLength) ? resp.arg[0] : responseLength;
|
||||
memcpy(response, resp.d.asBytes, resplen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue