AP_Math: make crc_crc8 const

This commit is contained in:
Andrew Tridgell 2017-03-22 17:12:48 +11:00 committed by Randy Mackay
parent 1a3ca43e86
commit 9660973975
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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);