From c11df77677d1a40656ab580df102e9b9b81faff6 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 17 Jul 2015 18:49:53 -0700 Subject: [PATCH] Off by one fix --- src/AutoPilotPlugins/PX4/FlightModesComponentController.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/PX4/FlightModesComponentController.cc b/src/AutoPilotPlugins/PX4/FlightModesComponentController.cc index 41c8d622b..df7d5f9f4 100644 --- a/src/AutoPilotPlugins/PX4/FlightModesComponentController.cc +++ b/src/AutoPilotPlugins/PX4/FlightModesComponentController.cc @@ -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; -- 2.22.0