From ecef09fdd7922cfa41b6e6d64a30c589a156bf4a Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Tue, 12 Mar 2024 17:26:42 +0100 Subject: [PATCH] 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)`... --- src/main/platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/platform.h b/src/main/platform.h index 472de03cae..5763643a59 100644 --- a/src/main/platform.h +++ b/src/main/platform.h @@ -26,12 +26,12 @@ #pragma GCC poison sprintf snprintf #endif -#include "target/common_pre.h" - #ifdef USE_CONFIG #include "config.h" #endif +#include "target/common_pre.h" + // MCU specific platform from drivers/XX #include "platform_mcu.h"