1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Refactor missing prototypes 2 (#14170)

This commit is contained in:
Petr Ledvina 2025-01-28 20:20:12 +01:00 committed by GitHub
parent 25f65cbc01
commit b277364b2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
192 changed files with 487 additions and 410 deletions

View file

@ -99,7 +99,7 @@ bool accHasBeenCalibrated(void)
#endif
}
void accResetRollAndPitchTrims(void)
LOCAL_UNUSED_FUNCTION static void accResetRollAndPitchTrims(void)
{
resetRollAndPitchTrims(&accelerometerConfigMutable()->accelerometerTrims);
}
@ -112,7 +112,7 @@ static void resetFlightDynamicsTrims(flightDynamicsTrims_t *accZero)
accZero->values.calibrationCompleted = 0;
}
void pgResetFn_accelerometerConfig(accelerometerConfig_t *instance)
static void pgResetFn_accelerometerConfig(accelerometerConfig_t *instance)
{
RESET_CONFIG_2(accelerometerConfig_t, instance,
.acc_lpf_hz = 25, // ATTITUDE/IMU runs at 100Hz (acro) or 500Hz (level modes) so we need to set 50 Hz (or lower) to avoid aliasing
@ -130,7 +130,7 @@ extern bool AccInflightCalibrationMeasurementDone;
extern bool AccInflightCalibrationSavetoEEProm;
extern bool AccInflightCalibrationActive;
bool accDetect(accDev_t *dev, accelerationSensor_e accHardwareToUse)
static bool accDetect(accDev_t *dev, accelerationSensor_e accHardwareToUse)
{
accelerationSensor_e accHardware = ACC_NONE;