AT: Handle response without leading \r\n

The AT response may not contain a leading \r\n, so avoid checking
for this to determine if it's a response. This characters will be
removed as a part of white space removal anyway.
This commit is contained in:
Stig Bjørlykke 2020-10-26 13:11:04 +01:00
parent 639891651f
commit 5413331ed3
1 changed files with 1 additions and 1 deletions

View File

@ -1816,7 +1816,7 @@ dissect_at_command(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
i_char = 0;
}
}
} else if (at_stream[0] == '\r' && at_stream[1] == '\n') {
} else {
command_item = proto_tree_add_none_format(tree, hf_command, tvb,
offset, 0, "Command %u", command_number);
command_tree = proto_item_add_subtree(command_item, ett_at_command);