diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index ad7397d061..039ade2d5a 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -731,7 +731,7 @@ void Compass::init() // convert to new custom rotation method // PARAMETER_CONVERSION - Added: Nov-2021 -#if !APM_BUILD_TYPE(APM_BUILD_AP_Periph) +#if AP_CUSTOMROTATIONS_ENABLED for (StateIndex i(0); i 1 // Look if there was a primary compass setup in previous version