From 5465beaedbbb5b094b6b16e8580d548ae894ff15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Wed, 2 May 2018 12:11:47 -0300 Subject: [PATCH] APMFlightModesComponentController: Remove redundant logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/AutoPilotPlugins/APM/APMFlightModesComponentController.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/APM/APMFlightModesComponentController.cc b/src/AutoPilotPlugins/APM/APMFlightModesComponentController.cc index 0411846bf..f13e78858 100644 --- a/src/AutoPilotPlugins/APM/APMFlightModesComponentController.cc +++ b/src/AutoPilotPlugins/APM/APMFlightModesComponentController.cc @@ -68,7 +68,7 @@ void APMFlightModesComponentController::_rcChannelsChanged(int channelCount, int for (int i=0; i<6; i++) { _rgChannelOptionEnabled[i] = QVariant(false); channelValue = pwmValues[i+6]; - if (channelValue != -1 && channelValue > 1800) { + if (channelValue > 1800) { _rgChannelOptionEnabled[i] = QVariant(true); } } -- 2.22.0