forked from osmocom/wireshark
btatt: Fix Temperature Measurement Value unit
Display correct temperature unit for the Temperature Measurement Value. Bug: 15058 Change-Id: I310c2fabfb1a824cb84f6f4182e881d7a22495cb Reviewed-on: https://code.wireshark.org/review/29139 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
daa62ae7cb
commit
4236185275
|
@ -5521,12 +5521,11 @@ dissect_attribute_value(proto_tree *tree, proto_item *patron_item, packet_info *
|
|||
offset += 1;
|
||||
|
||||
if (flags & 0x01) {
|
||||
proto_tree_add_item(tree, hf_btatt_temperature_measurement_value_celsius, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
||||
offset += 4;
|
||||
} else {
|
||||
proto_tree_add_item(tree, hf_btatt_temperature_measurement_value_fahrenheit, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
||||
offset += 4;
|
||||
} else {
|
||||
proto_tree_add_item(tree, hf_btatt_temperature_measurement_value_celsius, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
||||
}
|
||||
offset += 4;
|
||||
|
||||
if (flags & 0x02) {
|
||||
sub_item = proto_tree_add_item(tree, hf_btatt_temperature_measurement_timestamp, tvb, offset, 7, ENC_NA);
|
||||
|
|
Loading…
Reference in New Issue