Skip to content

Commit

Permalink
tests: Change value of component id to check for correct ser/deser logic
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Nov 21, 2023
1 parent f490aeb commit 0283311
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/test_shared/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ extern crate mavlink;
pub const COMMON_MSG_HEADER: mavlink::MavHeader = mavlink::MavHeader {
sequence: 239,
system_id: 1,
component_id: 1,
component_id: 2,
};

#[cfg(feature = "common")]
Expand Down
4 changes: 2 additions & 2 deletions tests/v1_encode_decode_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ mod test_v1_encode_decode {
0x59,
0x03,
0x03,
0xf1,
0xd7,
0x1f,
0x50,
];

#[test]
Expand Down
4 changes: 2 additions & 2 deletions tests/v2_encode_decode_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ mod test_v2_encode_decode {
0x59,
0x03,
0x03, //payload
16,
240, //checksum
46,
115, //checksum
];

#[test]
Expand Down

0 comments on commit 0283311

Please sign in to comment.