Skip to content

Commit

Permalink
Fixed lastest MSP version parsing error #64
Browse files Browse the repository at this point in the history
  • Loading branch information
seeul8er committed Mar 14, 2024
1 parent 5486b14 commit ee1eabd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/msp_ltm_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ bool parse_msp_ltm_byte(msp_ltm_port_t *msp_ltm_port, uint8_t new_byte) {
break;

case MSP_HEADER_M:
if (new_byte == '>') {
if (new_byte == '>' || new_byte == '!') {
msp_ltm_port->offset = 0;
msp_ltm_port->checksum1 = 0;
msp_ltm_port->checksum2 = 0;
Expand All @@ -150,7 +150,7 @@ bool parse_msp_ltm_byte(msp_ltm_port_t *msp_ltm_port, uint8_t new_byte) {
break;

case MSP_HEADER_X:
if (new_byte == '>') {
if (new_byte == '>' || new_byte == '!') {
msp_ltm_port->offset = 0;
msp_ltm_port->checksum2 = 0;
msp_ltm_port->mspVersion = MSP_V2_NATIVE;
Expand Down

0 comments on commit ee1eabd

Please sign in to comment.