From: marshmellow42 <marshmellowrf@gmail.com>
Date: Wed, 6 May 2015 14:16:31 +0000 (-0400)
Subject: MFU adjustment to allow 0 len returns from raw cmds
X-Git-Tag: v2.1.0~12^2~36
X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/45673b94571cd29b00ef5e76b3bee395c2b9480f

MFU adjustment to allow 0 len returns from raw cmds
---

diff --git a/client/cmdhfmfu.c b/client/cmdhfmfu.c
index 607cad96..a94d8767 100644
--- a/client/cmdhfmfu.c
+++ b/client/cmdhfmfu.c
@@ -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);