diff --git a/libraries/AP_Generator/AP_Generator.h b/libraries/AP_Generator/AP_Generator.h index 25cb061c9d..e662ffa251 100644 --- a/libraries/AP_Generator/AP_Generator.h +++ b/libraries/AP_Generator/AP_Generator.h @@ -3,7 +3,7 @@ #include #ifndef GENERATOR_ENABLED -#define GENERATOR_ENABLED !HAL_MINIMIZE_FEATURES +#define GENERATOR_ENABLED !HAL_MINIMIZE_FEATURES && !defined(HAL_BUILD_AP_PERIPH) #endif #if GENERATOR_ENABLED