aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorMichał Łabędzki <michal.labedzki@wireshark.org>2018-04-14 10:17:00 +0200
committerAnders Broman <a.broman58@gmail.com>2018-05-07 19:58:09 +0000
commitf7a660ec285c6ea5371137eb4b3b16f2e9626c70 (patch)
tree050e094cc408fa581a56d5a96b1eca8b2d5b3043 /epan
parentd230b3061012fda5211a09290aa0bae7b5319620 (diff)
Bluetooth: ATT: Fix description of few fields
Copy-paste issue, fixed description names of: btatt.weight_scale_feature btatt.glucose_measurement.sequence_number btatt.glucose_measurement.type_and_sample_location btatt.record_access_control_point.response_code Change-Id: Ifbda28ab86bda0e3dde824c24449d3ed90f8da8f Reviewed-on: https://code.wireshark.org/review/27362 Petri-Dish: Michal Labedzki <michal.labedzki@wireshark.org> Reviewed-by: Michal Labedzki <michal.labedzki@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-btatt.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-btatt.c b/epan/dissectors/packet-btatt.c
index b73295887d..9e6787075c 100644
--- a/epan/dissectors/packet-btatt.c
+++ b/epan/dissectors/packet-btatt.c
@@ -3838,7 +3838,7 @@ get_request(tvbuff_t *tvb, gint offset, packet_info *pinfo, guint8 opcode,
case 0x17: /* Prepare Write Response */
case 0x19: /* Execute Write Response */
case 0x1E: /* Handle Value Confirmation */
- if (request_data->opcode == opcode -1)
+ if (request_data->opcode == opcode - 1)
return request_data;
break;
@@ -5274,12 +5274,12 @@ dissect_attribute_value(proto_tree *tree, proto_item *patron_item, packet_info *
offset += 2;
}
- if (flags & 0x02 && !(flags & 0x04)) {
+ if ((flags & 0x02) && !(flags & 0x04)) {
proto_tree_add_item(tree, hf_btatt_glucose_measurement_glucose_concentration_kg_per_l, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
}
- if (flags & 0x02 && flags & 0x04) {
+ if ((flags & 0x02) && (flags & 0x04)) {
proto_tree_add_item(tree, hf_btatt_glucose_measurement_glucose_concentration_mol_per_l, tvb, offset, 2, ENC_LITTLE_ENDIAN);
offset += 2;
}
@@ -12906,7 +12906,7 @@ proto_register_btatt(void)
NULL, HFILL}
},
{&hf_btatt_weight_scale_feature,
- {"Body Composition Feature", "btatt.weight_scale_feature",
+ {"Weight Scale Feature", "btatt.weight_scale_feature",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL}
},
@@ -12976,7 +12976,7 @@ proto_register_btatt(void)
NULL, HFILL}
},
{&hf_btatt_glucose_measurement_sequence_number,
- {"Body Composition Feature", "btatt.glucose_measurement.sequence_number",
+ {"Sequence Number", "btatt.glucose_measurement.sequence_number",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL}
},
@@ -13001,7 +13001,7 @@ proto_register_btatt(void)
NULL, HFILL}
},
{&hf_btatt_glucose_measurement_type_and_sample_location,
- {"Glucose Concentration [mol/l]", "btatt.glucose_measurement.type_and_sample_location",
+ {"Type and Sample Location", "btatt.glucose_measurement.type_and_sample_location",
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL}
},
@@ -13596,7 +13596,7 @@ proto_register_btatt(void)
NULL, HFILL}
},
{&hf_btatt_record_access_control_point_response_code,
- {"Request Opcode", "btatt.record_access_control_point.response_code",
+ {"Response Opcode", "btatt.record_access_control_point.response_code",
FT_UINT8, BASE_DEC, VALS(record_access_control_point_response_code_vals), 0x0,
NULL, HFILL}
},