Commit cf28b0be authored by Don Gagne's avatar Don Gagne

parent 914e2e08
...@@ -189,7 +189,6 @@ SetupPage { ...@@ -189,7 +189,6 @@ SetupPage {
} }
function accept() { function accept() {
hideDialog()
if (_singleFirmwareMode) { if (_singleFirmwareMode) {
controller.flashSingleFirmwareMode(controller.selectedFirmwareBuildType) controller.flashSingleFirmwareMode(controller.selectedFirmwareBuildType)
} else { } else {
...@@ -210,13 +209,18 @@ SetupPage { ...@@ -210,13 +209,18 @@ SetupPage {
// Not ready yet, or no firmware available // Not ready yet, or no firmware available
return return
} }
var firmwareUrl = controller.apmFirmwareUrls[ardupilotFirmwareSelectionCombo.currentIndex]
if (firmwareUrl == "") {
return
}
controller.flashFirmwareUrl(controller.apmFirmwareUrls[ardupilotFirmwareSelectionCombo.currentIndex]) controller.flashFirmwareUrl(controller.apmFirmwareUrls[ardupilotFirmwareSelectionCombo.currentIndex])
hideDialog()
return return
} }
} }
} }
controller.flash(stack, firmwareBuildType, vehicleType) controller.flash(stack, firmwareBuildType, vehicleType)
hideDialog()
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment