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

Reset msp handling upon receipt of new incoming frames in msp_shared

This commit is contained in:
Curtis Bangert 2017-09-10 14:17:31 -04:00
parent 9b0e0a4f20
commit 5ccd39843d
8 changed files with 17 additions and 24 deletions

View file

@ -24,11 +24,6 @@ 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, mspFrameHandling_t handling);
bool handleMspFrame(uint8_t *frameStart, uint8_t *frameEnd);
bool sendMspReply(uint8_t payloadSize, mspResponseFnPtr responseFn);