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:
parent
2e6be42a8e
commit
ba793682a5
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user