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:
parent
68da0d20a2
commit
3e60dff30b
@ -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)
|
||||
|
@ -100,7 +100,9 @@ int SetupWizard::nextId() const
|
||||
return PAGE_INPUT;
|
||||
|
||||
case CONTROLLER_NANO:
|
||||
reboot();
|
||||
if (isRestartNeeded()) {
|
||||
reboot();
|
||||
}
|
||||
return PAGE_INPUT;
|
||||
|
||||
case CONTROLLER_OPLINK:
|
||||
|
Loading…
Reference in New Issue
Block a user