mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
REVONANO uncrustify
This commit is contained in:
parent
5ea8636424
commit
ae26eea363
@ -55,7 +55,7 @@ bool InputPage::validatePage()
|
||||
getWizard()->setInputType(SetupWizard::INPUT_SBUS);
|
||||
} else if (ui->spectrumButton->isChecked()) {
|
||||
getWizard()->setInputType(SetupWizard::INPUT_DSM);
|
||||
} else if (ui->multiplexButton->isChecked()){
|
||||
} else if (ui->multiplexButton->isChecked()) {
|
||||
getWizard()->setInputType(SetupWizard::INPUT_SRXL);
|
||||
} else {
|
||||
getWizard()->setInputType(SetupWizard::INPUT_PWM);
|
||||
@ -81,15 +81,20 @@ bool InputPage::restartNeeded(VehicleConfigurationSource::INPUT_TYPE selectedTyp
|
||||
switch (selectedType) {
|
||||
case VehicleConfigurationSource::INPUT_PWM:
|
||||
return data.RM_RcvrPort != HwSettings::RM_RCVRPORT_PWM;
|
||||
|
||||
case VehicleConfigurationSource::INPUT_PPM:
|
||||
return data.RM_RcvrPort != HwSettings::RM_RCVRPORT_PPM;
|
||||
|
||||
case VehicleConfigurationSource::INPUT_SBUS:
|
||||
return data.RM_MainPort != HwSettings::RM_MAINPORT_SBUS;
|
||||
|
||||
case VehicleConfigurationSource::INPUT_SRXL:
|
||||
return data.RM_FlexiPort != HwSettings::RM_FLEXIPORT_SRXL;
|
||||
|
||||
case VehicleConfigurationSource::INPUT_DSM:
|
||||
// TODO: Handle all of the DSM types ?? Which is most common?
|
||||
return data.RM_MainPort != HwSettings::RM_MAINPORT_DSM;
|
||||
|
||||
default: return true;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user