Commit 5465beae authored by Patrick José Pereira's avatar Patrick José Pereira

APMFlightModesComponentController: Remove redundant logic

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 99287c4c
...@@ -68,7 +68,7 @@ void APMFlightModesComponentController::_rcChannelsChanged(int channelCount, int ...@@ -68,7 +68,7 @@ void APMFlightModesComponentController::_rcChannelsChanged(int channelCount, int
for (int i=0; i<6; i++) { for (int i=0; i<6; i++) {
_rgChannelOptionEnabled[i] = QVariant(false); _rgChannelOptionEnabled[i] = QVariant(false);
channelValue = pwmValues[i+6]; channelValue = pwmValues[i+6];
if (channelValue != -1 && channelValue > 1800) { if (channelValue > 1800) {
_rgChannelOptionEnabled[i] = QVariant(true); _rgChannelOptionEnabled[i] = QVariant(true);
} }
} }
......
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