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

This commit is contained in:
Peter Barker 2021-02-15 08:51:28 +11:00 committed by Randy Mackay
parent 97c1445bce
commit 01eb64ce73
1 changed files with 2 additions and 2 deletions

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,6 +86,7 @@ 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
};