Fixes #1103
This commit is contained in:
@@ -61,9 +61,11 @@ for (int i=0; i<NUM_LOGICAL_SWITCH; i++)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef GVAR_VALUE // defined(GVARS)
|
#ifdef GVAR_VALUE // defined(GVARS)
|
||||||
/* TODO it could be a good idea instead of getPhase() / getPhaseName() outputs.phase = getFlightPhase(); */
|
/* TODO it could be a good idea instead of getPhase() / getPhaseName() outputs.phase = getFlightPhase(); */
|
||||||
for (int fm=0; fm<MAX_FLIGHT_MODES; fm++)
|
for (int fm=0; fm<MAX_FLIGHT_MODES; fm++) {
|
||||||
for (int gv=0; gv<MAX_GVARS; gv++)
|
for (int gv=0; gv<MAX_GVARS; gv++) {
|
||||||
outputs.gvars[fm][gv] = GVAR_VALUE(gv, fm);
|
outputs.gvars[fm][gv] = GVAR_VALUE(gv, getGVarFlightPhase(fm, gv));
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif //GETVALUES_IMPORT
|
#endif //GETVALUES_IMPORT
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user