Update fc_msp.c

This commit is contained in:
TheAngularity 2016-12-01 16:52:35 +01:00 committed by GitHub
parent 2854bbbecd
commit 6f43494a77
1 changed files with 2 additions and 2 deletions

View File

@ -284,6 +284,7 @@ void initActiveBoxIds(void)
if (sensors(SENSOR_ACC)) { if (sensors(SENSOR_ACC)) {
activeBoxIds[activeBoxIdCount++] = BOXANGLE; activeBoxIds[activeBoxIdCount++] = BOXANGLE;
activeBoxIds[activeBoxIdCount++] = BOXHORIZON; activeBoxIds[activeBoxIdCount++] = BOXHORIZON;
activeBoxIds[activeBoxIdCount++] = BOXHEADFREE;
} }
#ifdef BARO #ifdef BARO
@ -293,9 +294,8 @@ void initActiveBoxIds(void)
#endif #endif
#ifdef MAG #ifdef MAG
if (sensors(SENSOR_ACC) || sensors(SENSOR_MAG)) { if (sensors(SENSOR_MAG)) {
activeBoxIds[activeBoxIdCount++] = BOXMAG; activeBoxIds[activeBoxIdCount++] = BOXMAG;
activeBoxIds[activeBoxIdCount++] = BOXHEADFREE;
activeBoxIds[activeBoxIdCount++] = BOXHEADADJ; activeBoxIds[activeBoxIdCount++] = BOXHEADADJ;
} }
#endif #endif