From 96609739759995edae22c906aabffcd37dd6c740 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 22 Mar 2017 17:12:48 +1100 Subject: [PATCH] AP_Math: make crc_crc8 const --- libraries/AP_Math/crc.cpp | 2 +- libraries/AP_Math/crc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Math/crc.cpp b/libraries/AP_Math/crc.cpp index 0caf93b85a..c644ce584f 100644 --- a/libraries/AP_Math/crc.cpp +++ b/libraries/AP_Math/crc.cpp @@ -47,7 +47,7 @@ static const uint8_t crc8_table[] = { /* crc8 from trone driver by Luis Rodrigues */ -uint8_t crc_crc8(uint8_t *p, uint8_t len) +uint8_t crc_crc8(const uint8_t *p, uint8_t len) { uint16_t i; uint16_t crc = 0x0; diff --git a/libraries/AP_Math/crc.h b/libraries/AP_Math/crc.h index 75727b2010..e0e31a2bd2 100644 --- a/libraries/AP_Math/crc.h +++ b/libraries/AP_Math/crc.h @@ -16,5 +16,5 @@ interfaces to ArduPilot collection of CRCs. */ -uint8_t crc_crc8(uint8_t *p, uint8_t len); +uint8_t crc_crc8(const uint8_t *p, uint8_t len);