1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

spektrum: the same type of DSM receivers is now allowed on both CC ports

This commit is contained in:
Oleg Semyonov 2011-11-01 01:16:43 +02:00
parent 0116e6a007
commit 0aad612720
2 changed files with 7 additions and 4 deletions

View File

@ -62,10 +62,13 @@ void ConfigCCHWWidget::refreshValues()
void ConfigCCHWWidget::widgetsContentsChanged()
{
ConfigTaskWidget::widgetsContentsChanged();
enableControls(false);
if((m_telemetry->cbFlexi->currentText()==m_telemetry->cbTele->currentText()) && m_telemetry->cbTele->currentText()!="Disabled")
if (((m_telemetry->cbTele->currentIndex() == HwSettings::CC_MAINPORT_TELEMETRY) && (m_telemetry->cbFlexi->currentIndex() == HwSettings::CC_FLEXIPORT_TELEMETRY)) ||
((m_telemetry->cbTele->currentIndex() == HwSettings::CC_MAINPORT_GPS) && (m_telemetry->cbFlexi->currentIndex() == HwSettings::CC_FLEXIPORT_GPS)) ||
((m_telemetry->cbTele->currentIndex() == HwSettings::CC_MAINPORT_COMAUX) && (m_telemetry->cbFlexi->currentIndex() == HwSettings::CC_FLEXIPORT_COMAUX)))
{
m_telemetry->problems->setText("Warning: you have configured the MainPort and the FlexiPort for the same function, this is currently not suported");
enableControls(false);
m_telemetry->problems->setText(tr("Warning: you have configured both MainPort and FlexiPort for the same function, this currently is not supported"));
}
else
{
@ -83,4 +86,3 @@ void ConfigCCHWWidget::openHelp()
* @}
* @}
*/

View File

@ -35,6 +35,7 @@
#include <QtGui/QWidget>
#include <QList>
#include "smartsavebutton.h"
#include "hwsettings.h"
class ConfigCCHWWidget: public ConfigTaskWidget
{