Commit d2bea7a8 authored by Don Gagne's avatar Don Gagne

Merge pull request #1719 from DonLakeFlyer/FMBug

Off by one fix
parents e3cc9524 c11df776
...@@ -134,7 +134,7 @@ void FlightModesComponentController::_init(void) ...@@ -134,7 +134,7 @@ void FlightModesComponentController::_init(void)
_channelListModel << "Disabled"; _channelListModel << "Disabled";
_channelListModelChannel << 0; _channelListModelChannel << 0;
for (int channel=1; channel<_channelCount; channel++) { for (int channel=1; channel<=_channelCount; channel++) {
if (!usedChannels.contains(channel)) { if (!usedChannels.contains(channel)) {
_channelListModel << QString("Channel %1").arg(channel); _channelListModel << QString("Channel %1").arg(channel);
_channelListModelChannel << channel; _channelListModelChannel << channel;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment