1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

Include a target's config.h before common_pre.h. (#13439)

Some gating in `common_pre.h` requires the target's `#define`s to be present, such as `#if defined(USE_LED_STRIP)`...
This commit is contained in:
Dominic Clifton 2024-03-12 17:26:42 +01:00 committed by GitHub
parent af51e00773
commit ecef09fdd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,12 +26,12 @@
#pragma GCC poison sprintf snprintf #pragma GCC poison sprintf snprintf
#endif #endif
#include "target/common_pre.h"
#ifdef USE_CONFIG #ifdef USE_CONFIG
#include "config.h" #include "config.h"
#endif #endif
#include "target/common_pre.h"
// MCU specific platform from drivers/XX // MCU specific platform from drivers/XX
#include "platform_mcu.h" #include "platform_mcu.h"