Browse Source

AP_Math: make crc_crc8 const

master
Andrew Tridgell 8 years ago committed by Randy Mackay
parent
commit
9660973975
  1. 2
      libraries/AP_Math/crc.cpp
  2. 2
      libraries/AP_Math/crc.h

2
libraries/AP_Math/crc.cpp

@ -47,7 +47,7 @@ static const uint8_t crc8_table[] = {
/* /*
crc8 from trone driver by Luis Rodrigues 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 i;
uint16_t crc = 0x0; uint16_t crc = 0x0;

2
libraries/AP_Math/crc.h

@ -16,5 +16,5 @@
interfaces to ArduPilot collection of CRCs. 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…
Cancel
Save