Skip to content

Commit

Permalink
Fix sequence order in deser function
Browse files Browse the repository at this point in the history
  • Loading branch information
IhsenBouallegue committed Nov 20, 2023
1 parent 226f2ee commit 85de5fa
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 @@ -180,9 +180,9 @@ impl<M: Message> MavFrame<M> {
pub fn deser(version: MavlinkVersion, input: &[u8]) -> Result<Self, ParserError> {
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,
Expand Down

0 comments on commit 85de5fa

Please sign in to comment.