mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
LP-235 Using constant instead of hard coded channel count.
This commit is contained in:
parent
1dd5b3e246
commit
c45915b597
@ -442,7 +442,7 @@ ConfigInputWidget::ConfigInputWidget(QWidget *parent) :
|
||||
void ConfigInputWidget::buildOptionComboBox(QComboBox *combo, UAVObjectField *field, int index, bool applyLimits)
|
||||
{
|
||||
if (combo == ui->failsafeFlightMode) {
|
||||
for (int i = 0; i < 6; i++) {
|
||||
for (quint32 i = 0; i < FlightModeSettings::FLIGHTMODEPOSITION_NUMELEM; i++) {
|
||||
ui->failsafeFlightMode->addItem(QString("Position %1").arg(i + 1), QVariant(i));
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user