diff --git a/ArduPlane/Parameters.cpp b/ArduPlane/Parameters.cpp index bfb4f89264..d643d8b013 100644 --- a/ArduPlane/Parameters.cpp +++ b/ArduPlane/Parameters.cpp @@ -1294,12 +1294,12 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = { ParametersG2::ParametersG2(void) : unused_integer{1} -#if HAL_SOARING_ENABLED - ,soaring_controller(plane.TECS_controller, plane.aparm) -#endif #if HAL_BUTTON_ENABLED ,button_ptr(&plane.button) #endif +#if HAL_SOARING_ENABLED + ,soaring_controller(plane.TECS_controller, plane.aparm) +#endif { AP_Param::setup_object_defaults(this, var_info); }