TECMP: Fix voltage representation in vendor data

Fixes: #18871
This commit is contained in:
Dr. Lars Völker 2023-02-23 16:43:53 +01:00
parent 5948274adb
commit b0487565ad
1 changed files with 1 additions and 1 deletions

View File

@ -1239,7 +1239,7 @@ dissect_tecmp_status_device_vendor_data(tvbuff_t *tvb, packet_info *pinfo _U_, p
tmp = tvb_get_guint16(tvb, offset, ENC_BIG_ENDIAN);
proto_tree_add_string_format_value(tree, hf_tecmp_payload_status_dev_vendor_technica_voltage, tvb, offset, 2, NULL,
"%d.%d V", (tmp & 0x0000ff00) >> 8, tmp & 0x000000ff);
"%d.%02d V", (tmp & 0x0000ff00) >> 8, tmp & 0x000000ff);
offset += 2;
if (tvb_captured_length_remaining(tvb, offset) == 1) {