mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-25 16:51:16 +08:00
refactor(px4io_protocol): keep crc8_tab[] private to the library
This commit is contained in:
1 parent
3bc7dcd7ad
commit
1d85a376f9
2 files changed
+1
-2
No files matched your search
@@ -248,7 +248,6 @@ struct IOPacket {
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern const uint8_t crc8_tab[256];
|
||||
uint8_t crc_packet(struct IOPacket *pkt);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
#include "protocol.h"
|
||||
|
||||
const uint8_t crc8_tab[256] = {
|
||||
static const uint8_t crc8_tab[256] = {
|
||||
0x00, 0x07, 0x0E, 0x09, 0x1C, 0x1B, 0x12, 0x15,
|
||||
0x38, 0x3F, 0x36, 0x31, 0x24, 0x23, 0x2A, 0x2D,
|
||||
0x70, 0x77, 0x7E, 0x79, 0x6C, 0x6B, 0x62, 0x65,
|
||||
|
||||
Reference in new issue
Block a user