Commit cf28b0be authored by Don Gagne's avatar Don Gagne

parent 914e2e08
......@@ -189,7 +189,6 @@ SetupPage {
}
function accept() {
hideDialog()
if (_singleFirmwareMode) {
controller.flashSingleFirmwareMode(controller.selectedFirmwareBuildType)
} else {
......@@ -210,13 +209,18 @@ SetupPage {
// Not ready yet, or no firmware available
return
}
var firmwareUrl = controller.apmFirmwareUrls[ardupilotFirmwareSelectionCombo.currentIndex]
if (firmwareUrl == "") {
return
}
controller.flashFirmwareUrl(controller.apmFirmwareUrls[ardupilotFirmwareSelectionCombo.currentIndex])
hideDialog()
return
}
}
}
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