Commit c11df776 authored by Don Gagne's avatar Don Gagne

Off by one fix

parent d5a21e16
......@@ -134,7 +134,7 @@ void FlightModesComponentController::_init(void)
_channelListModel << "Disabled";
_channelListModelChannel << 0;
for (int channel=1; channel<_channelCount; channel++) {
for (int channel=1; channel<=_channelCount; channel++) {
if (!usedChannels.contains(channel)) {
_channelListModel << QString("Channel %1").arg(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