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 authored and patrickelectric committed May 2, 2024
1 parent 1208960 commit 96079f4
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 96079f4

Please sign in to comment.