1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

Restored SmartPort MSP frame handling to how it was before the addition of MSP over CRSF.

This commit is contained in:
mikeller 2017-09-11 03:01:51 +12:00
parent 6bf755d0bd
commit aa1edbd978
7 changed files with 23 additions and 20 deletions

View file

@ -24,6 +24,11 @@ typedef union mspTxBuffer_u {
uint8_t crsfMspTxBuffer[CRSF_MSP_TX_BUF_SIZE];
} mspTxBuffer_t;
typedef enum mspFrameHandling_e {
MSP_FRAME_HANDLING_NORMAL,
MSP_FRAME_HANDLING_FORCED
} mspFrameHandling_t;
void initSharedMsp();
bool handleMspFrame(uint8_t *frameStart, uint8_t *frameEnd);
bool handleMspFrame(uint8_t *frameStart, uint8_t *frameEnd, mspFrameHandling_t handling);
bool sendMspReply(uint8_t payloadSize, mspResponseFnPtr responseFn);