diff --git a/src/main/target/common_pre.h b/src/main/target/common_pre.h index 505e48656c..0db3a0d1dc 100644 --- a/src/main/target/common_pre.h +++ b/src/main/target/common_pre.h @@ -483,3 +483,7 @@ #undef USE_RUNAWAY_TAKEOFF #endif // USE_WING + +#if defined(USE_POSITION_HOLD) && !defined(USE_GPS) +#error "USE_POSITION_HOLD requires USE_GPS to be defined" +#endif