1
0
Fork 0
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:
toastedcornflakes 2017-10-30 22:35:14 +00:00
parent fb3bc456e5
commit d597a9aea7

View file

@ -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