A couple of TODOs removed (hardcoded values instead of constants)

This commit is contained in:
bsongis
2014-05-15 10:25:07 +02:00
parent 4f5c145ac7
commit 970cebb9bd
@@ -21,9 +21,9 @@
struct TxInputs { struct TxInputs {
int sticks[NUM_STICKS]; /* lh lv rv rh */ int sticks[NUM_STICKS]; /* lh lv rv rh */
int pots[5]; /* TODO NUM_POTS */ int pots[C9X_NUM_POTS];
int switches[10]; /* TODO NUM_SWITCHES */ int switches[C9X_NUM_SWITCHES];
bool keys[6]; /* TODO NUM_KEYS */ bool keys[C9X_NUM_KEYS];
bool rotenc; bool rotenc;
bool trims[8]; bool trims[8];
}; };
@@ -35,8 +35,8 @@ class TxOutputs {
} }
int16_t chans[C9X_NUM_CHNOUT]; int16_t chans[C9X_NUM_CHNOUT];
bool vsw[32]; /* TODO NUM_VIRTUAL_SWITCHES */ bool vsw[C9X_NUM_CSW];
int16_t gvars[9][9]; /*TODO MAX_FLIGHT_MODES, NUM_GVARS */ int16_t gvars[C9X_MAX_FLIGHT_MODES][C9X_MAX_GVARS];
unsigned int beep; unsigned int beep;
// uint8_t phase; // uint8_t phase;
}; };