refactor(px4io_protocol): keep crc8_tab[] private to the library

This commit is contained in:
Matthias Grob committed 2026-11-18 16:50:02 +01:00
1 parent 3bc7dcd7ad
commit 1d85a376f9
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -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
+1 -1
View File
@@ -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,