Attempt to fix the progress bar issue on Companion Read Firmware function (DFU mode)

This commit is contained in:
Bertrand Songis
2020-06-13 12:46:21 +02:00
parent 0541177224
commit 5198b9a8a7
4 changed files with 17 additions and 7 deletions
+1 -2
View File
@@ -253,7 +253,6 @@ void resetAvrdudeFuses(bool eepromProtect, ProgressWidget * progress)
}
}
bool readFirmware(const QString & filename, ProgressWidget * progress)
{
bool result = false;
@@ -274,7 +273,7 @@ bool readFirmware(const QString & filename, ProgressWidget * progress)
}
}
if (result == false) {
if (!result) {
qDebug() << "readFirmware: reading" << filename << "with" << getRadioInterfaceCmd() << getReadFirmwareArgs(filename);
FlashProcess flashProcess(getRadioInterfaceCmd(), getReadFirmwareArgs(filename), progress);
result = flashProcess.run();