From be9284a56c17320acad3d99f337559abe45bece0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3oFRF?= Date: Thu, 2 May 2024 15:02:48 +0100 Subject: [PATCH] changed fn_calculate_crc to pub QOL --- mavlink-core/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);