1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

REVONANO A workaround for freeze in setup wizard

This commit is contained in:
samguns 2015-05-26 23:09:25 +08:00
parent 03cef4ee89
commit 68da0d20a2
2 changed files with 12 additions and 1 deletions

View File

@ -96,10 +96,13 @@ int SetupWizard::nextId() const
{
switch (getControllerType()) {
case CONTROLLER_REVO:
case CONTROLLER_NANO:
case CONTROLLER_DISCOVERYF4:
return PAGE_INPUT;
case CONTROLLER_NANO:
reboot();
return PAGE_INPUT;
case CONTROLLER_OPLINK:
default:
return PAGE_NOTYETIMPLEMENTED;

View File

@ -1008,6 +1008,14 @@ void UploaderGadgetWidget::startAutoUpdate()
void UploaderGadgetWidget::startAutoUpdateErase()
{
startAutoUpdate(true);
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
UAVObjectUtilManager *utilMngr = pm->getObject<UAVObjectUtilManager>();
int id = utilMngr->getBoardModel();
if (id == 0x905) {
systemReset();
}
}
void UploaderGadgetWidget::startAutoUpdate(bool erase)