mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-28 19:48:31 -04:00
AP_Math: make crc_crc8 const
This commit is contained in:
parent
1a3ca43e86
commit
9660973975
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user