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 <michal.labedzki@tieto.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michal Labedzki <michal.labedzki@tieto.com>
This commit is contained in:
michal.orynicz 2016-04-18 10:03:14 +02:00 committed by Michal Labedzki
parent d93498ee76
commit abaa076f75
1 changed files with 5 additions and 0 deletions

View File

@ -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;