From 01eb64ce73ff3c03bc2ce9971ff36df4b1ee44c2 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 15 Feb 2021 08:51:28 +1100 Subject: [PATCH] AP_RPM: don't present RPM2_PIN parameter if RPM_MAX_INSTANCES <=1 --- libraries/AP_RPM/AP_RPM.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_RPM/AP_RPM.cpp b/libraries/AP_RPM/AP_RPM.cpp index 8a412cb3ee..c7335e8bde 100644 --- a/libraries/AP_RPM/AP_RPM.cpp +++ b/libraries/AP_RPM/AP_RPM.cpp @@ -79,7 +79,6 @@ const AP_Param::GroupInfo AP_RPM::var_info[] = { // @Increment: 0.001 // @User: Advanced AP_GROUPINFO("2_SCALING", 11, AP_RPM, _scaling[1], 1.0f), -#endif // @Param: 2_PIN // @DisplayName: RPM2 input pin number @@ -87,7 +86,8 @@ const AP_Param::GroupInfo AP_RPM::var_info[] = { // @Values: -1:Disabled,50:PixhawkAUX1,51:PixhawkAUX2,52:PixhawkAUX3,53:PixhawkAUX4,54:PixhawkAUX5,55:PixhawkAUX6 // @User: Standard AP_GROUPINFO("2_PIN", 12, AP_RPM, _pin[1], -1), - +#endif + AP_GROUPEND };