diff --git a/src/AutoPilotPlugins/Common/RadioComponentController.cc b/src/AutoPilotPlugins/Common/RadioComponentController.cc index 3f08e264ba8b9ef6776c1b3d78ac27839498e86d..e8c30fb7f9391457bf53de5d2d63cf51f7936e2d 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; } }