AP_RPM: don't present RPM2_PIN parameter if RPM_MAX_INSTANCES <=1

This commit is contained in:
Peter Barker
2021-02-16 08:26:18 +09:00
committed by Randy Mackay
parent 97c1445bce
commit 01eb64ce73
+2 -2
View File
@@ -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
};