From 45673b94571cd29b00ef5e76b3bee395c2b9480f Mon Sep 17 00:00:00 2001 From: marshmellow42 Date: Wed, 6 May 2015 10:16:31 -0400 Subject: [PATCH] MFU adjustment to allow 0 len returns from raw cmds --- client/cmdhfmfu.c | 1 - 1 file changed, 1 deletion(-) 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); -- 2.39.2