refactor: remove unused legacy frame format code
The old [0xC8][dest][src][type][size][payload][crc] format was never used with real hardware. Remove cel_crsf_frame_legacy, *_legacy() functions, and update tests/tools accordingly.
This commit is contained in:
@@ -109,22 +109,3 @@ void cel_crsf_channel_default(int16_t channels[16]);
|
||||
|
||||
/* Parameter protocol — see crsf_param.h */
|
||||
#include "celrs/crsf_param.h"
|
||||
|
||||
/* --- Deprecated (old frame format: [0xC8][dest][src][type][size][payload][crc]) --- */
|
||||
|
||||
/* Deprecated frame structure (old format). Use cel_crsf_frame instead. */
|
||||
typedef struct {
|
||||
uint8_t destination;
|
||||
uint8_t source;
|
||||
uint8_t type;
|
||||
uint8_t size;
|
||||
uint8_t payload[255];
|
||||
uint8_t crc;
|
||||
} cel_crsf_frame_legacy;
|
||||
|
||||
int cel_crsf_frame_validate(cel_crsf_frame_legacy const* frame);
|
||||
int cel_crsf_frame_parse_legacy(cel_crsf_frame_legacy* frame, uint8_t const* buf,
|
||||
size_t len);
|
||||
size_t cel_crsf_frame_build_legacy(uint8_t* dst, uint8_t destination,
|
||||
uint8_t source, uint8_t type,
|
||||
uint8_t const* payload, uint8_t size);
|
||||
|
||||
Reference in New Issue
Block a user