From abaa076f75f39135144787495eed9e6ebf2bc48a Mon Sep 17 00:00:00 2001 From: "michal.orynicz" Date: Mon, 18 Apr 2016 10:03:14 +0200 Subject: [PATCH] btatt: Add count of rr intervals to head of subtree The root of rr intervals subtree provided no information about it's content. Add count of contained rr intervals to it. Change-Id: Ia9cb0a1dd8968643e6c6907cebe2f0336c09059d Reviewed-on: https://code.wireshark.org/review/14988 Petri-Dish: Michal Labedzki Tested-by: Petri Dish Buildbot Reviewed-by: Michal Labedzki --- epan/dissectors/packet-btatt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/epan/dissectors/packet-btatt.c b/epan/dissectors/packet-btatt.c index 5546ed4788..cab0f62f50 100644 --- a/epan/dissectors/packet-btatt.c +++ b/epan/dissectors/packet-btatt.c @@ -5305,12 +5305,17 @@ dissect_attribute_value(proto_tree *tree, proto_item *patron_item, packet_info * } if (flags & 0x10) { + guint interval_count = 0; + sub_item = proto_tree_add_item(tree, hf_btatt_heart_rate_measurement_rr_intervals, tvb, offset, tvb_captured_length_remaining(tvb, offset), ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_btatt_list); while (tvb_reported_length_remaining(tvb, offset)) { proto_tree_add_item(sub_tree, hf_btatt_heart_rate_measurement_rr_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); offset += 2; + interval_count += 1; } + + proto_item_append_text(sub_item, " [count = %2u]", interval_count); } break;