mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Cleanup 32K capable gyro includes (#5523)
Added a `USE_32K_CAPABLE_GYRO` define set in `common_fc_post.h` that replaces the repeated testing for each gyro define wherever 32KHz compatibility is checked.
This commit is contained in:
parent
a8e86880f5
commit
c8a646ebc3
4 changed files with 11 additions and 6 deletions
|
@ -46,7 +46,7 @@ typedef enum {
|
|||
TABLE_RX_SPI,
|
||||
#endif
|
||||
TABLE_GYRO_HARDWARE_LPF,
|
||||
#if defined(USE_GYRO_SPI_MPU6500) || defined(USE_GYRO_SPI_MPU9250) || defined(USE_GYRO_SPI_ICM20689)
|
||||
#ifdef USE_32K_CAPABLE_GYRO
|
||||
TABLE_GYRO_32KHZ_HARDWARE_LPF,
|
||||
#endif
|
||||
TABLE_ACC_HARDWARE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue