Merge pull request #569 from martinbudden/bf_fake_sensors

Fixed fake sensors initialisation warnings.
This commit is contained in:
Martin Budden 2016-06-23 11:07:57 +01:00 committed by GitHub
commit 00f179397e
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ const extiConfig_t *selectMPUIntExtiConfig(void)
#ifdef USE_FAKE_GYRO #ifdef USE_FAKE_GYRO
int16_t fake_gyro_values[XYZ_AXIS_COUNT] = { 0,0,0 }; int16_t fake_gyro_values[XYZ_AXIS_COUNT] = { 0,0,0 };
static void fakeGyroInit(uint16_t lpf) static void fakeGyroInit(uint8_t lpf)
{ {
UNUSED(lpf); UNUSED(lpf);
} }
@ -129,7 +129,7 @@ bool fakeGyroDetect(gyro_t *gyro)
#ifdef USE_FAKE_ACC #ifdef USE_FAKE_ACC
int16_t fake_acc_values[XYZ_AXIS_COUNT] = {0,0,0}; int16_t fake_acc_values[XYZ_AXIS_COUNT] = {0,0,0};
static void fakeAccInit(void) {} static void fakeAccInit(acc_t *acc) {UNUSED(acc);}
static bool fakeAccRead(int16_t *accData) { static bool fakeAccRead(int16_t *accData) {
for(int i=0;i<XYZ_AXIS_COUNT;++i) { for(int i=0;i<XYZ_AXIS_COUNT;++i) {
accData[i] = fake_acc_values[i]; accData[i] = fake_acc_values[i];