1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

OP-1761 Fixing a type

This commit is contained in:
m_thread 2015-03-06 00:10:21 +01:00
parent 25c52d6430
commit 1a21b8fce6

View File

@ -47,7 +47,7 @@ bool EscPage::validatePage()
if (ui->oneshotESCButton->isChecked()) { if (ui->oneshotESCButton->isChecked()) {
getWizard()->setEscType(SetupWizard::ESC_ONESHOT); getWizard()->setEscType(SetupWizard::ESC_ONESHOT);
} else if (ui->rapidESCButton->isChecked()) { } else if (ui->rapidESCButton->isChecked()) {
if (isSynchOrOneShotAvalable()) { if (isSynchOrOneShotAvailable()) {
getWizard()->setEscType(SetupWizard::ESC_SYNCHED); getWizard()->setEscType(SetupWizard::ESC_SYNCHED);
} else { } else {
getWizard()->setEscType(SetupWizard::ESC_RAPID); getWizard()->setEscType(SetupWizard::ESC_RAPID);
@ -63,7 +63,7 @@ bool EscPage::validatePage()
void EscPage::initializePage() void EscPage::initializePage()
{ {
bool enabled = isSynchOrOneShotAvalable(); bool enabled = isSynchOrOneShotAvailable();
ui->oneshotESCButton->setEnabled(enabled); ui->oneshotESCButton->setEnabled(enabled);
if (ui->oneshotESCButton->isChecked() && !enabled) { if (ui->oneshotESCButton->isChecked() && !enabled) {
@ -72,7 +72,7 @@ void EscPage::initializePage()
} }
} }
bool EscPage::isSynchOrOneShotAvalable() bool EscPage::isSynchOrOneShotAvailable()
{ {
bool available = true; bool available = true;