Skip to content

Commit

Permalink
s4607 - Fix Dwell Mask
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-Steinmann authored and alagoutte committed Dec 20, 2023
1 parent c55ae05 commit c1ecdb4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion epan/dissectors/packet-stanag4607.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ dissect_mission(tvbuff_t *tvb, proto_tree *seg_tree, gint offset)
#define D21 5*8+4
#define D24 5*8+1
#define D28 4*8+5
#define D29 4*8+4
#define D30 4*8+3
#define D31 4*8+2
#define D32_1 4*8+1
#define D32_2 4*8+0
Expand Down Expand Up @@ -688,9 +690,12 @@ dissect_dwell(tvbuff_t *tvb, proto_tree *seg_tree, gint offset)

if (SET(mask, D28)) {
proto_tree_add_item(seg_tree, hf_4607_dwell_sensor_heading, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
}
if (SET(mask, D29)) {
proto_tree_add_item(seg_tree, hf_4607_dwell_sensor_pitch, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
}
if (SET(mask, D30)) {
proto_tree_add_item(seg_tree, hf_4607_dwell_sensor_roll, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;
}
Expand Down

0 comments on commit c1ecdb4

Please sign in to comment.