mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Uploader gadget: on Reset, go through a board detection too, since it seems to be necessary to get a proper reboot of the ARHS too. Makes reboot over telemetry link work too.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2345 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
c4b6b16181
commit
05de5492d9
@ -210,13 +210,6 @@ void UploaderGadgetWidget::goToBootloader(UAVObject* callerObj, bool success)
|
||||
ExtensionSystem::PluginManager *pm = ExtensionSystem::PluginManager::instance();
|
||||
disconnect(fwIAP, SIGNAL(transactionCompleted(UAVObject*,bool)),this,SLOT(goToBootloader(UAVObject*, bool)));
|
||||
|
||||
if (resetOnly) {
|
||||
resetOnly=false;
|
||||
delay::msleep(3500);
|
||||
systemBoot();
|
||||
break;
|
||||
}
|
||||
|
||||
currentStep = IAP_STATE_BOOTLOADER;
|
||||
|
||||
// Tell the mainboard to get into bootloader state:
|
||||
@ -258,6 +251,13 @@ void UploaderGadgetWidget::goToBootloader(UAVObject* callerObj, bool success)
|
||||
*/
|
||||
m_config->telemetryLink->setEnabled(false);
|
||||
m_config->rescueButton->setEnabled(false);
|
||||
if (resetOnly) {
|
||||
resetOnly=false;
|
||||
delay::msleep(3500);
|
||||
systemBoot();
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
case IAP_STATE_BOOTLOADER:
|
||||
|
Loading…
Reference in New Issue
Block a user