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:
parent
03cef4ee89
commit
68da0d20a2
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user