Commit 8371c95c authored by Patrick José Pereira's avatar Patrick José Pereira

FirmwareUpgrade: Add warning message about multiple devices connected

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 6917d469
......@@ -118,6 +118,13 @@ SetupPage {
// Board was found right away, so something is already plugged in before we've started upgrade
statusTextArea.append(qgcUnplugText1)
statusTextArea.append(qgcUnplugText2)
var availableDevices = controller.availableBoardsName()
if(availableDevices.length > 1) {
statusTextArea.append(highlightPrefix + qsTr("Multiple devices detected! Remove all detected devices to perform the firmware upgrade."))
statusTextArea.append(qsTr("Detected [%1]: ").arg(availableDevices.length) + availableDevices.join(", "))
}
QGroundControl.multiVehicleManager.activeVehicle.autoDisconnect = true
} else {
// We end up here when we detect a board plugged in after we've started upgrade
......
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