1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 00:35:34 +03:00

MSP to get logic conditions status

This commit is contained in:
Pawel Spychalski (DzikuVx) 2019-09-13 11:11:12 +02:00
parent cc2b2c6753
commit 50bb6c7fe6
2 changed files with 7 additions and 0 deletions

View file

@ -490,6 +490,11 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
sbufWriteU8(dst, logicConditions(i)->flags);
}
break;
case MSP2_INAV_LOGIC_CONDITIONS_STATUS:
for (int i = 0; i < MAX_LOGIC_CONDITIONS; i++) {
sbufWriteU32(dst, logicConditionGetValue(i));
}
break;
#endif
case MSP2_COMMON_MOTOR_MIXER:
for (uint8_t i = 0; i < MAX_SUPPORTED_MOTORS; i++) {