From 788dcc200de76c965208c428ab1e1de0e72c98c1 Mon Sep 17 00:00:00 2001 From: Niklas Hauser Date: Sat, 26 Sep 2020 05:40:24 +0200 Subject: [PATCH] Change CFG_TUSB_CONFIG_FILE mechanism to improve header file scanning --- src/tusb_option.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tusb_option.h b/src/tusb_option.h index 7e486bff0..28bbcf89e 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -110,11 +110,13 @@ // Allow to use command line to change the config name/location -#ifndef CFG_TUSB_CONFIG_FILE - #define CFG_TUSB_CONFIG_FILE "tusb_config.h" +#ifdef CFG_TUSB_CONFIG_FILE + #include CFG_TUSB_CONFIG_FILE +#else + #include "tusb_config.h" #endif -#include CFG_TUSB_CONFIG_FILE + /** \addtogroup group_configuration * @{ */