From e5f4bfe4bb2a0a943400450409f9293a72a0d923 Mon Sep 17 00:00:00 2001 From: qwerty756 Date: Fri, 16 Oct 2020 01:07:59 +0800 Subject: [PATCH] Remove useless codes (#9110) --- src/AutoPilotPlugins/Common/RadioComponentController.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AutoPilotPlugins/Common/RadioComponentController.cc b/src/AutoPilotPlugins/Common/RadioComponentController.cc index 3f08e264b..e8c30fb7f 100644 --- a/src/AutoPilotPlugins/Common/RadioComponentController.cc +++ b/src/AutoPilotPlugins/Common/RadioComponentController.cc @@ -867,7 +867,7 @@ void RadioComponentController::_loadSettings(void) _transmitterMode = settings.value(_settingsKeyTransmitterMode, 2).toInt(); settings.endGroup(); - if (_transmitterMode != 1 || _transmitterMode != 2) { + if (!(_transmitterMode == 1 || _transmitterMode == 2)) { _transmitterMode = 2; } } -- 2.22.0