1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

REVONANO Only reboot nano when needed in setup wizard

This commit is contained in:
samguns 2015-05-28 23:18:24 +08:00
parent 68da0d20a2
commit 3e60dff30b
2 changed files with 4 additions and 1 deletions

View File

@ -49,6 +49,7 @@ void AutoUpdatePage::autoUpdate()
Q_ASSERT(uploader);
m_isUpdating = true;
uploader->autoUpdate(ui->eraseSettings->isChecked());
getWizard()->setRestartNeeded(true);
}
void AutoUpdatePage::updateStatus(uploader::ProgressStep status, QVariant value)

View File

@ -100,7 +100,9 @@ int SetupWizard::nextId() const
return PAGE_INPUT;
case CONTROLLER_NANO:
reboot();
if (isRestartNeeded()) {
reboot();
}
return PAGE_INPUT;
case CONTROLLER_OPLINK: