1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 05:45:31 +03:00

Add Fn suffix to accgyro function pointers

This commit is contained in:
Martin Budden 2017-05-07 23:21:44 +01:00
parent b60662325c
commit 83d49e503e
20 changed files with 77 additions and 77 deletions

View file

@ -311,7 +311,7 @@ bool accInit(uint32_t gyroSamplingInverval)
return false;
}
acc.dev.acc_1G = 256; // set default
acc.dev.init(&acc.dev); // driver initialisation
acc.dev.initFn(&acc.dev); // driver initialisation
// set the acc sampling interval according to the gyro sampling interval
switch (gyroSamplingInverval) { // Switch statement kept in place to change acc sampling interval in the future
case 500:
@ -453,7 +453,7 @@ static void applyAccelerationTrims(const flightDynamicsTrims_t *accelerationTrim
void accUpdate(rollAndPitchTrims_t *rollAndPitchTrims)
{
if (!acc.dev.read(&acc.dev)) {
if (!acc.dev.readFn(&acc.dev)) {
return;
}
acc.isAccelUpdatedAtLeastOnce = true;