summaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
Diffstat (limited to 'monitor')
-rw-r--r--monitor/packet.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/monitor/packet.c b/monitor/packet.c
index 879fe22c0..11a6a57ce 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -6371,14 +6371,12 @@ static void cmd_complete_evt(const void *data, uint8_t size)
" (0x%2.2x|0x%4.4x) ncmd %d", ogf, ocf, evt->ncmd);
if (!opcode_data || !opcode_data->rsp_func) {
- if (size - 3 == 1) {
+ if (size > 3) {
uint8_t status = *((uint8_t *) (data + 3));
print_status(status);
- return;
+ packet_hexdump(data + 4, size - 4);
}
-
- packet_hexdump(data + 3, size - 3);
return;
}