mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Remove reset facility
This commit is contained in:
parent
9caeceb2dd
commit
58647e678f
10 changed files with 0 additions and 65 deletions
|
@ -241,19 +241,6 @@ const busDevice_t *gyroSensorBusByDevice(uint8_t whichSensor)
|
|||
}
|
||||
#endif // USE_GYRO_REGISTER_DUMP
|
||||
|
||||
const mpuConfiguration_t *gyroMpuConfiguration(void)
|
||||
{
|
||||
#ifdef USE_DUAL_GYRO
|
||||
if (gyroToUse == GYRO_CONFIG_USE_GYRO_2) {
|
||||
return &gyroSensor2.gyroDev.mpuConfiguration;
|
||||
} else {
|
||||
return &gyroSensor1.gyroDev.mpuConfiguration;
|
||||
}
|
||||
#else
|
||||
return &gyroSensor1.gyroDev.mpuConfiguration;
|
||||
#endif
|
||||
}
|
||||
|
||||
const mpuDetectionResult_t *gyroMpuDetectionResult(void)
|
||||
{
|
||||
#ifdef USE_DUAL_GYRO
|
||||
|
@ -447,7 +434,6 @@ static bool gyroInitSensor(gyroSensor_t *gyroSensor)
|
|||
|| defined(USE_ACC_MPU6050) || defined(USE_GYRO_SPI_MPU9250) || defined(USE_GYRO_SPI_ICM20601) || defined(USE_GYRO_SPI_ICM20649) || defined(USE_GYRO_SPI_ICM20689)
|
||||
|
||||
mpuDetect(&gyroSensor->gyroDev);
|
||||
mpuResetFn = gyroSensor->gyroDev.mpuConfiguration.resetFn; // must be set after mpuDetect
|
||||
#endif
|
||||
|
||||
const gyroHardware_e gyroHardware = gyroDetect(&gyroSensor->gyroDev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue