mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 01:35:35 +03:00
Correct length of MSP SET frame for logic conditions
This commit is contained in:
parent
298c2810b0
commit
d0073d63b7
1 changed files with 1 additions and 1 deletions
|
@ -1893,7 +1893,7 @@ static mspResult_e mspFcProcessInCommand(uint16_t cmdMSP, sbuf_t *src)
|
|||
#ifdef USE_LOGIC_CONDITIONS
|
||||
case MSP2_INAV_SET_LOGIC_CONDITIONS:
|
||||
sbufReadU8Safe(&tmp_u8, src);
|
||||
if ((dataSize == 13) && (tmp_u8 < MAX_LOGIC_CONDITIONS)) {
|
||||
if ((dataSize == 14) && (tmp_u8 < MAX_LOGIC_CONDITIONS)) {
|
||||
logicConditionsMutable(tmp_u8)->enabled = sbufReadU8(src);
|
||||
logicConditionsMutable(tmp_u8)->operation = sbufReadU8(src);
|
||||
logicConditionsMutable(tmp_u8)->operandA.type = sbufReadU8(src);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue