Skip to content

Commit

Permalink
Fix sequence order in serialization function (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
IhsenBouallegue authored Nov 20, 2023
1 parent 226f2ee commit 3a17105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ impl<M: Message> MavFrame<M> {
let mut buf = bytes_mut::BytesMut::new(buf);

// serialize header
buf.put_u8(self.header.sequence);
buf.put_u8(self.header.system_id);
buf.put_u8(self.header.component_id);
buf.put_u8(self.header.sequence);

// message id
match self.protocol_version {
Expand Down

0 comments on commit 3a17105

Please sign in to comment.