diff --git a/libraries/AP_Generator/AP_Generator.h b/libraries/AP_Generator/AP_Generator.h index b0c02be444..86afb9d57a 100644 --- a/libraries/AP_Generator/AP_Generator.h +++ b/libraries/AP_Generator/AP_Generator.h @@ -1,10 +1,6 @@ #pragma once -#include - -#ifndef HAL_GENERATOR_ENABLED -#define HAL_GENERATOR_ENABLED !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) -#endif +#include "AP_Generator_config.h" #if HAL_GENERATOR_ENABLED