Skip to content

Commit

Permalink
bug fix, parsing variable data structure fixed header properly
Browse files Browse the repository at this point in the history
  • Loading branch information
maebli committed Mar 22, 2024
1 parent 6951375 commit a757b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user_data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ impl<'a> TryFrom<&'a [u8]> for UserDataBlock<'a> {
status: StatusField::from_bits_truncate(data[10]),
signature: u16::from_be_bytes([data[12], data[11]]),
},
variable_data_block: &data[6..data.len() - 3],
variable_data_block: &data[13..data.len()],
})
}
ControlInformation::ResponseWithFixedDataStructure => {
Expand Down

0 comments on commit a757b9b

Please sign in to comment.