From 12afb9f60fe15024f1420386268bcd6407d01dff Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 15 Jan 2016 10:34:12 -0800 Subject: [PATCH] Show detailed instructions on flash fail --- src/VehicleSetup/FirmwareUpgrade.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/VehicleSetup/FirmwareUpgrade.qml b/src/VehicleSetup/FirmwareUpgrade.qml index 2a1013dac..d60bb6d01 100644 --- a/src/VehicleSetup/FirmwareUpgrade.qml +++ b/src/VehicleSetup/FirmwareUpgrade.qml @@ -43,8 +43,9 @@ QGCView { readonly property string highlightPrefix: "" readonly property string highlightSuffix: "" readonly property string welcomeText: "QGroundControl can upgrade the firmware on Pixhawk devices, 3DR Radios and PX4 Flow Smart Cameras." - readonly property string plugInText: highlightPrefix + "Plug in your device" + highlightSuffix + " via USB to " + highlightPrefix + "start" + highlightSuffix + " firmware upgrade. " + - "Make sure to connect " + highlightPrefix + "directly" + highlightSuffix + " to a powered USB port on your computer, not through a USB hub." + readonly property string plugInText: highlightPrefix + "Plug in your device" + highlightSuffix + " via USB to " + highlightPrefix + "start" + highlightSuffix + " firmware upgrade. " + readonly property string flashFailText: "If upgrade failed, make sure to connect " + highlightPrefix + "directly" + highlightSuffix + " to a powered USB port on your computer, not through a USB hub. " + + "Also make sure you are only powered via USB " + highlightPrefix + "not battery" + highlightSuffix + "." readonly property string qgcDisconnectText: "All QGroundControl connections to vehicles must be disconnected prior to firmware upgrade." property string usbUnplugText: "Device must be disconnected from USB to start firmware upgrade. " + highlightPrefix + "Disconnect {0}" + highlightSuffix + " from usb." @@ -117,6 +118,7 @@ QGCView { onError: { hideDialog() + statusTextArea.append(flashFailText) flashCompleteWaitTimer.running = true } -- 2.22.0