mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Do not compile L3GD20 if it's not used
This commit is contained in:
parent
fb3bc456e5
commit
d597a9aea7
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,9 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef USE_GYRO_L3GD20
|
||||
|
||||
#include "build/build_config.h"
|
||||
#include "build/debug.h"
|
||||
|
||||
|
@ -159,3 +162,5 @@ bool l3gd20Detect(gyroDev_t *gyro)
|
|||
|
||||
return true; // blindly assume it's present, for now.
|
||||
}
|
||||
|
||||
#endif // USE_GYRO_L3GD20
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue