From 198f26f34824285d6804622a00a71f021c46fa0f Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 22 Feb 2024 08:32:00 +1100 Subject: [PATCH] ArduCopter: remove unused old_top_element param from convert_class --- ArduCopter/Parameters.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ArduCopter/Parameters.cpp b/ArduCopter/Parameters.cpp index cd47458393..8a1cec0c3a 100644 --- a/ArduCopter/Parameters.cpp +++ b/ArduCopter/Parameters.cpp @@ -1354,21 +1354,21 @@ void Copter::load_parameters(void) // PARAMETER_CONVERSION - Added: Mar-2022 #if AP_FENCE_ENABLED - AP_Param::convert_class(g.k_param_fence_old, &fence, fence.var_info, 0, 0, true); + AP_Param::convert_class(g.k_param_fence_old, &fence, fence.var_info, 0, true); #endif static const AP_Param::G2ObjectConversion g2_conversions[] { #if AP_STATS_ENABLED // PARAMETER_CONVERSION - Added: Jan-2024 for Copter-4.6 - { &stats, stats.var_info, 12, 4044 }, + { &stats, stats.var_info, 12 }, #endif #if AP_SCRIPTING_ENABLED // PARAMETER_CONVERSION - Added: Jan-2024 for Copter-4.6 - { &scripting, scripting.var_info, 30, 94 }, + { &scripting, scripting.var_info, 30 }, #endif #if AP_GRIPPER_ENABLED // PARAMETER_CONVERSION - Added: Feb-2024 for Copter-4.6 - { &gripper, gripper.var_info, 13, 4045}, + { &gripper, gripper.var_info, 13 }, #endif }; @@ -1376,7 +1376,7 @@ void Copter::load_parameters(void) // PARAMETER_CONVERSION - Added: Feb-2024 for Copter-4.6 #if HAL_LOGGING_ENABLED - AP_Param::convert_class(g.k_param_logger, &logger, logger.var_info, 0, 0, true); + AP_Param::convert_class(g.k_param_logger, &logger, logger.var_info, 0, true); #endif // setup AP_Param frame type flags