Skip to content

Commit

Permalink
changed fn_calculate_crc to pub
Browse files Browse the repository at this point in the history
QOL
  • Loading branch information
joaofrf committed May 2, 2024
1 parent 1208960 commit be9284a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mavlink-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl<M: Message> MavFrame<M> {
}
}

fn calculate_crc(data: &[u8], extra_crc: u8) -> u16 {
pub fn calculate_crc(data: &[u8], extra_crc: u8) -> u16 {
let mut crc_calculator = CRCu16::crc16mcrf4cc();
crc_calculator.digest(data);

Expand Down

0 comments on commit be9284a

Please sign in to comment.