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.


(cherry picked from commit 5413331ed3)
This commit is contained in:
Stig Bjørlykke 2020-10-26 12:11:04 +00:00
parent ce22707c35
commit ab41153f22
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);