From 0c39ead89d08c8b4376251cfb6bf407f8e133f4d Mon Sep 17 00:00:00 2001 From: edouard Date: Fri, 26 Nov 2010 10:44:05 +0000 Subject: [PATCH] OP-35 Only do a 'verify' operation if the device is readable. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2152 ebee16cc-31ac-478f-84a7-5cbb03baadba --- ground/src/plugins/uploader/devicewidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ground/src/plugins/uploader/devicewidget.cpp b/ground/src/plugins/uploader/devicewidget.cpp index c1dbfb4a1..62c251350 100644 --- a/ground/src/plugins/uploader/devicewidget.cpp +++ b/ground/src/plugins/uploader/devicewidget.cpp @@ -108,7 +108,10 @@ void deviceWidget::uploadFirmware() return; } - bool verify = true; + bool verify = false; + if (m_dfu->devices[deviceID].Readable) + verify = true; + QString filename = setOpenFileName(); if (filename.isEmpty()) {