1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

LP-458 uploadtool: wait for download to finish before saving to disk...

download is still broken for usb/vcp/gps
This commit is contained in:
Philippe Renon 2017-02-01 22:16:37 +01:00
parent 2e6be42a8e
commit ba793682a5

View File

@ -274,6 +274,9 @@ int main(int argc, char *argv[])
}
QByteArray fw;
dfu.DownloadFirmware(&fw, 0);
while (!dfu.isFinished()) {
QThread::msleep(500);
}
bool ret = dfu.SaveByteArrayToFile(file.toLatin1(), fw);
return ret;
} else if (action == DFU::actionCompareCrc) {