diff --git a/src/lib.rs b/src/lib.rs index 8acb6dce89..70e3fda98d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -180,9 +180,9 @@ impl MavFrame { pub fn deser(version: MavlinkVersion, input: &[u8]) -> Result { let mut buf = Bytes::new(input); - let sequence = buf.get_u8(); let system_id = buf.get_u8(); let component_id = buf.get_u8(); + let sequence = buf.get_u8(); let header = MavHeader { system_id, component_id,