From 3a171050583119a6ad3492595ca57200d2b50f6b Mon Sep 17 00:00:00 2001 From: Ihsen Bouallegue <48621967+IhsenBouallegue@users.noreply.github.com> Date: Mon, 20 Nov 2023 14:00:30 +0100 Subject: [PATCH] Fix sequence order in serialization function (#204) --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 8acb6dce89..871006f13b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -154,9 +154,9 @@ impl MavFrame { 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 {