This commit is contained in:
bsongis
2014-05-13 11:57:36 +02:00
parent 6225609f0e
commit 2c2278a9ed
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ for (int i=0; i<NUM_LOGICAL_SWITCH; i++)
outputs.vsw[i] = getSwitch(SWSRC_SW1+i, 0);
#endif
#ifdef GVAR_VALUE // defined(GVARS)
uint8_t 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 gv=0; gv<MAX_GVARS; gv++)
outputs.gvars[fm][gv] = GVAR_VALUE(gv, fm);