diff --git a/mavlink-core/src/lib.rs b/mavlink-core/src/lib.rs index 9ef9a06de8..0e6b653157 100644 --- a/mavlink-core/src/lib.rs +++ b/mavlink-core/src/lib.rs @@ -206,7 +206,7 @@ impl MavFrame { } } -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);