NFC CLI: Fix multiple apdu commands from not working when one of them gives an empty response (#2922)

* NFC CLI: Fix multiple apdu commands from not working when one of them gives an empty response
* Make PVS happy

Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
erikj95
2023-08-03 00:24:02 +09:00
committed by GitHub
co-authored by hedger あく
parent a7aef0bfc2
commit cf6706c42e
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ static void nfc_cli_apdu(Cli* cli, FuriString* args) {
resp_size = (tx_rx.rx_bits / 8) * 2;
if(!resp_size) {
printf("No response\r\n");
break;
continue;
}
resp_buffer = malloc(resp_size);
uint8_to_hex_chars(tx_rx.rx_data, resp_buffer, resp_size);