mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
Merge pull request #569 from martinbudden/bf_fake_sensors
Fixed fake sensors initialisation warnings.
This commit is contained in:
commit
00f179397e
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue