mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
LPF setting is not needed to detect the gyro sensor, only when it's
initialised; now the lpf setting is passed to gyroInit(). This saves a bit of code size and ram as well as making the code cleaner.
This commit is contained in:
parent
06ceac0614
commit
aac13914f9
20 changed files with 83 additions and 85 deletions
|
@ -19,3 +19,4 @@
|
|||
|
||||
typedef void (*sensorInitFuncPtr)(void); // sensor init prototype
|
||||
typedef bool (*sensorReadFuncPtr)(int16_t *data); // sensor read and align prototype
|
||||
typedef void (*sensorGyroInitFuncPtr)(uint16_t lpf); // gyro sensor init prototype
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue