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

add msp frame to get GVAR values

This commit is contained in:
Pawel Spychalski (DzikuVx) 2020-02-17 11:30:00 +01:00
parent 6c7fd8ad36
commit 004082b67d
2 changed files with 7 additions and 0 deletions

View file

@ -36,6 +36,7 @@
#include "common/time.h"
#include "common/utils.h"
#include "common/global_functions.h"
#include "common/global_variables.h"
#include "config/parameter_group_ids.h"
@ -542,6 +543,11 @@ static bool mspFcProcessOutCommand(uint16_t cmdMSP, sbuf_t *dst, mspPostProcessF
sbufWriteU32(dst, logicConditionGetValue(i));
}
break;
case MSP2_INAV_GVAR_STATUS:
for (int i = 0; i < MAX_GLOBAL_VARIABLES; i++) {
sbufWriteU32(dst, gvGet(i));
}
break;
#endif
#ifdef USE_GLOBAL_FUNCTIONS
case MSP2_INAV_GLOBAL_FUNCTIONS: